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.00686/0.00686, allocations: 97.78 kB / 15.73 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 195.6 kB / 16.67 MB, free: 5.883 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009358/0.009358, allocations: 1.238 MB / 291.8 MB, free: 13.62 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 66.94 kB / 402.8 MB, free: 32.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08489/0.08673, allocations: 49.7 MB / 452.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004259/0.09103, allocations: 2.797 MB / 455.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.09369, allocations: 1.635 MB / 456.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.09383, allocations: 8 kB / 456.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006659/0.09452, allocations: 195.2 kB / 457.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.09474, allocations: 99.23 kB / 457.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.09541, allocations: 283 kB / 457.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005292/0.09595, allocations: 402.5 kB / 457.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.09616, allocations: 113.7 kB / 458 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.09637, allocations: 139.4 kB / 458.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.09661, allocations: 163.2 kB / 458.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.591e-05/0.09666, allocations: 28 kB / 458.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003528/0.09702, allocations: 191.6 kB / 458.5 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.232e-05/0.09712, allocations: 79.75 kB / 458.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.0973, allocations: 171.1 kB / 458.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005676/0.09787, allocations: 458.1 kB / 459.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.09789, allocations: 4 kB / 459.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.0979, allocations: 0 / 459.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.09791, allocations: 0 / 459.2 MB, free: 7.559 MB / 334.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.00106/0.09898, allocations: 0.658 MB / 459.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.09903, allocations: 15.89 kB / 459.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.286e-05/0.09911, allocations: 66.72 kB / 459.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.09918, allocations: 40.7 kB / 460 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.09968, allocations: 290.7 kB / 460.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.09972, allocations: 20.94 kB / 460.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.09977, allocations: 28.38 kB / 460.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.1003, allocations: 269 kB / 460.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1003, allocations: 3.938 kB / 460.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1003, allocations: 16 kB / 460.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1004, allocations: 12 kB / 460.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005329/0.1009, allocations: 246.1 kB / 460.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.1026, allocations: 1.08 MB / 461.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.1032, allocations: 238.4 kB / 462.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.1035, allocations: 124.8 kB / 462.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-05/0.1035, allocations: 16 kB / 462.3 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.1036, allocations: 38.55 kB / 462.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.416e-06/0.1036, allocations: 3.984 kB / 462.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004524/0.1081, allocations: 1.623 MB / 464 MB, free: 2.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.1082, allocations: 55.41 kB / 464 MB, free: 2.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.1085, allocations: 287 kB / 464.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.1085, allocations: 29.7 kB / 464.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1087, allocations: 196.5 kB / 464.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.1088, allocations: 130.9 kB / 464.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1089, allocations: 65.69 kB / 464.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.1092, allocations: 342.8 kB / 465 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.1094, allocations: 115.9 kB / 465.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/0.1097, allocations: 172.5 kB / 465.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.1103, allocations: 302.1 kB / 465.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1103, allocations: 0 / 465.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001687/0.112, allocations: 0.6214 MB / 466.2 MB, free: 140 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.112, allocations: 11.98 kB / 466.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.112, allocations: 3.938 kB / 466.3 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/0.1147, allocations: 0.5246 MB / 466.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.1151, allocations: 67.84 kB / 466.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.1161, allocations: 1.28 MB / 468.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1164, allocations: 23.92 kB / 468.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.1164, allocations: 11.94 kB / 468.2 MB, free: 14.16 MB / 350.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.0001973/0.1166, allocations: 157.8 kB / 468.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/0.1167, allocations: 31.81 kB / 468.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.1184, allocations: 0.5801 MB / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1184, allocations: 4 kB / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1184, allocations: 4 kB / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1184, allocations: 0 / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.1206, allocations: 1.06 MB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1206, allocations: 0 / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.1209, allocations: 47.97 kB / 470 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.1235, allocations: 0.5246 MB / 470.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.1235, allocations: 8 kB / 470.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.1247, allocations: 1.288 MB / 471.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1247, allocations: 0 / 471.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.1265, allocations: 0.8147 MB / 472.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.853e-05/0.1266, allocations: 105 kB / 472.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.1267, allocations: 11.94 kB / 472.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1269, allocations: 11.98 kB / 472.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.127, allocations: 20.03 kB / 472.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.127, allocations: 12 kB / 472.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002469/0.1273, allocations: 202 kB / 473 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.914e-06/0.1273, allocations: 0 / 473 MB, free: 9.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004062/0.1277, allocations: 95.8 kB / 473.1 MB, free: 8.992 MB / 350.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.002316/0.13, allocations: 1.384 MB / 474.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007767/0.1308, allocations: 347.8 kB / 474.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1308, allocations: 3.938 kB / 474.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000422/0.1312, allocations: 188.3 kB / 475 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.1316, allocations: 37.36 kB / 475.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006858/0.1385, allocations: 3.746 MB / 478.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.139, allocations: 0.7876 MB / 479.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.1391, allocations: 26.28 kB / 479.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.1392, allocations: 107.4 kB / 479.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1393, allocations: 4 kB / 479.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.1729, allocations: 7.113 MB / 486.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.13, allocations: 11.98 kB / 486.9 MB, free: 11.19 MB / 366.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)