Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002889/0.00289, allocations: 194 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.963/1.963, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009957/0.009957, allocations: 1.234 MB / 291.6 MB, free: 1.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002581/0.002581, allocations: 63.91 kB / 352.4 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7502/0.7528, allocations: 49.7 MB / 402.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.009629/0.7626, allocations: 2.792 MB / 404.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00564/0.7683, allocations: 1.635 MB / 406.6 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003366/0.7687, allocations: 9.438 kB / 406.6 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.7707, allocations: 195.6 kB / 406.8 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003667/0.7711, allocations: 98.78 kB / 406.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.773, allocations: 282.2 kB / 407.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007707/0.7738, allocations: 395.9 kB / 407.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.774, allocations: 120.1 kB / 407.6 MB, free: 7.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005281/0.7746, allocations: 140.3 kB / 407.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006546/0.7753, allocations: 168.9 kB / 407.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001936/0.7755, allocations: 30.62 kB / 408 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006839/0.7762, allocations: 181.8 kB / 408.1 MB, free: 6.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.7764, allocations: 82 kB / 408.2 MB, free: 6.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003036/0.7767, allocations: 169.7 kB / 408.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.7784, allocations: 461.2 kB / 408.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.7785, allocations: 0 / 408.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.7785, allocations: 0 / 408.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.7785, allocations: 0 / 408.8 MB, free: 6.492 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.002/0.7805, allocations: 0.6493 MB / 409.5 MB, free: 5.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001273/0.7806, allocations: 14 kB / 409.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002327/0.7809, allocations: 66.55 kB / 409.6 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.7811, allocations: 39.03 kB / 409.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.7815, allocations: 277.7 kB / 409.9 MB, free: 5.617 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.7815, allocations: 19.75 kB / 409.9 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.7816, allocations: 26.12 kB / 409.9 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.7825, allocations: 276.7 kB / 410.2 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.226e-05/0.7826, allocations: 0.7031 kB / 410.2 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.911e-05/0.7827, allocations: 15.59 kB / 410.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.7828, allocations: 6.812 kB / 410.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.7838, allocations: 243 kB / 410.5 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003271/0.7871, allocations: 1.079 MB / 411.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.7883, allocations: 252.4 kB / 411.8 MB, free: 4.559 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.789, allocations: 119.2 kB / 411.9 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.371e-05/0.7891, allocations: 21.78 kB / 411.9 MB, free: 4.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.7891, allocations: 32.03 kB / 412 MB, free: 4.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.7891, allocations: 1.094 kB / 412 MB, free: 4.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.00779/0.7969, allocations: 1.64 MB / 413.6 MB, free: 3.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/0.797, allocations: 54.16 kB / 413.6 MB, free: 3.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.7975, allocations: 281.7 kB / 413.9 MB, free: 3.453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.7975, allocations: 31.64 kB / 414 MB, free: 3.418 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.7977, allocations: 195.7 kB / 414.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.701e-05/0.7978, allocations: 119.1 kB / 414.3 MB, free: 3.156 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.798, allocations: 66.89 kB / 414.3 MB, free: 3.113 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.7982, allocations: 352.8 kB / 414.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000542/0.7988, allocations: 119.4 kB / 414.8 MB, free: 2.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/0.7994, allocations: 164.1 kB / 414.9 MB, free: 2.656 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/0.8002, allocations: 301.8 kB / 415.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.8002, allocations: 0 / 415.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002835/0.803, allocations: 0.6304 MB / 415.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.46e-05/0.8031, allocations: 5.969 kB / 415.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.8032, allocations: 5.281 kB / 415.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/0.8071, allocations: 0.5216 MB / 416.4 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.8074, allocations: 66.23 kB / 416.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.8094, allocations: 1.286 MB / 417.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.8098, allocations: 14.33 kB / 417.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.8099, allocations: 18.08 kB / 417.8 MB, free: 1.008 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002713/0.8101, allocations: 150.3 kB / 417.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.8102, allocations: 30.34 kB / 418 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.8132, allocations: 0.5755 MB / 418.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.8133, allocations: 3.375 kB / 418.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.8133, allocations: 2.125 kB / 418.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.8133, allocations: 1.359 kB / 418.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.8177, allocations: 1.064 MB / 419.6 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.84e-05/0.8178, allocations: 5.062 kB / 419.6 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.8182, allocations: 45.48 kB / 419.7 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003904/0.8221, allocations: 0.5199 MB / 420.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.8223, allocations: 7.938 kB / 420.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.8242, allocations: 1.291 MB / 421.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.8242, allocations: 1.469 kB / 421.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003797/0.8281, allocations: 0.8083 MB / 422.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003797/0.8285, allocations: 103.8 kB / 422.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.8287, allocations: 10.92 kB / 422.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.8289, allocations: 12.41 kB / 422.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.8291, allocations: 24.17 kB / 422.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.8291, allocations: 8.875 kB / 422.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003746/0.8295, allocations: 201.6 kB / 422.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8295, allocations: 3.938 kB / 422.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001346/0.8308, allocations: 95.53 kB / 422.7 MB, free: 14.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004368/0.8352, allocations: 1.383 MB / 424.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.8372, allocations: 339.3 kB / 424.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.8372, allocations: 1.469 kB / 424.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000596/0.8378, allocations: 188.1 kB / 424.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.8389, allocations: 38.14 kB / 424.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.8529, allocations: 3.743 MB / 428.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006799/0.8536, allocations: 0.7842 MB / 429.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.8538, allocations: 27.19 kB / 429.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.8541, allocations: 110.7 kB / 429.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of SimCode: time 1.744e-06/0.8541, allocations: 0 / 429.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06824/0.9223, allocations: 6.948 MB / 436.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/22.69, allocations: 4.703 kB / 436.3 MB, free: 4.512 MB / 302.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1)