Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",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.005662/0.005662, allocations: 97.11 kB / 15.73 MB, free: 6.047 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.001284/0.001284, allocations: 196.2 kB / 16.68 MB, free: 5.973 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009396/0.009396, allocations: 1.238 MB / 291.8 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 64.84 kB / 402.8 MB, free: 9.145 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08167/0.08356, allocations: 49.71 MB / 452.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.00432/0.08792, allocations: 2.981 MB / 455.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.0902, allocations: 1.397 MB / 456.9 MB, free: 216 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.09037, allocations: 8 kB / 456.9 MB, free: 208 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004872/0.09087, allocations: 159 kB / 457 MB, free: 48 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.09118, allocations: 111.2 kB / 457.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.09185, allocations: 262.7 kB / 457.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004747/0.09234, allocations: 438.2 kB / 457.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.09259, allocations: 135.2 kB / 458 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.09283, allocations: 167.3 kB / 458.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.09309, allocations: 199.1 kB / 458.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.318e-05/0.09315, allocations: 32 kB / 458.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003465/0.09351, allocations: 219.6 kB / 458.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.09363, allocations: 87.69 kB / 458.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.09383, allocations: 195 kB / 458.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006285/0.09448, allocations: 0.5213 MB / 459.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.09449, allocations: 4 kB / 459.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.0945, allocations: 0 / 459.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.09451, allocations: 0 / 459.4 MB, free: 13.71 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001232/0.09575, allocations: 0.7142 MB / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.09579, allocations: 8.031 kB / 460.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.436e-05/0.09588, allocations: 70.72 kB / 460.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.09596, allocations: 44.66 kB / 460.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.09643, allocations: 328.2 kB / 460.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.09647, allocations: 25.03 kB / 460.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.09653, allocations: 28.38 kB / 460.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006256/0.09716, allocations: 306.2 kB / 460.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.09718, allocations: 0 / 460.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.09722, allocations: 19.94 kB / 460.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.09724, allocations: 8 kB / 460.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006903/0.09793, allocations: 274.5 kB / 461.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.09977, allocations: 1.167 MB / 462.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004696/0.1003, allocations: 200.9 kB / 462.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.1005, allocations: 84.7 kB / 462.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.142e-05/0.1005, allocations: 11.98 kB / 462.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.1006, allocations: 46.56 kB / 462.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.1006, allocations: 0 / 462.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002989/0.1036, allocations: 0.9068 MB / 463.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.1037, allocations: 55.64 kB / 463.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003481/0.104, allocations: 316.5 kB / 463.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.104, allocations: 29.7 kB / 464 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.1042, allocations: 240.1 kB / 464.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.001e-05/0.1043, allocations: 103.2 kB / 464.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.1044, allocations: 74.02 kB / 464.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1046, allocations: 338.8 kB / 464.7 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.1049, allocations: 124.6 kB / 464.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.1053, allocations: 221.1 kB / 465.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/0.1061, allocations: 348.7 kB / 465.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1061, allocations: 0 / 465.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001412/0.1075, allocations: 0.6085 MB / 466 MB, free: 6.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1076, allocations: 4 kB / 466 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1076, allocations: 4 kB / 466 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.1095, allocations: 0.8157 MB / 466.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.1098, allocations: 75.89 kB / 466.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009902/0.1108, allocations: 1.183 MB / 468.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.1111, allocations: 27.97 kB / 468.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.1112, allocations: 12 kB / 468.1 MB, free: 4.527 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001846/0.1113, allocations: 157.9 kB / 468.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.1114, allocations: 31.81 kB / 468.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.1128, allocations: 0.53 MB / 468.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1128, allocations: 4 kB / 468.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1128, allocations: 4 kB / 468.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.371e-06/0.1128, allocations: 3.984 kB / 468.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.1133, allocations: 377.4 kB / 469.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1133, allocations: 0 / 469.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.1135, allocations: 36.09 kB / 469.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/0.1154, allocations: 0.8246 MB / 470.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1154, allocations: 4 kB / 470.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008598/0.1163, allocations: 1.175 MB / 471.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1163, allocations: 0 / 471.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.1176, allocations: 0.6015 MB / 471.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.983e-05/0.1177, allocations: 104.9 kB / 472 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.1177, allocations: 7.984 kB / 472 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.118, allocations: 19.92 kB / 472 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.118, allocations: 23.91 kB / 472 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.1181, allocations: 8 kB / 472 MB, free: 480 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002446/0.1183, allocations: 223.1 kB / 472.2 MB, free: 256 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1183, allocations: 0 / 472.2 MB, free: 256 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.1187, allocations: 103.9 kB / 472.3 MB, free: 152 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (19): * Single equations (assignments): 17 * 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,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001752/0.1205, allocations: 1.166 MB / 473.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009313/0.1215, allocations: 328.3 kB / 473.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1215, allocations: 0.8125 kB / 473.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005267/0.122, allocations: 175.8 kB / 474 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.1224, allocations: 46.38 kB / 474 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/0.1285, allocations: 3.799 MB / 477.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.1289, allocations: 0.799 MB / 478.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.1291, allocations: 38.95 kB / 478.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.1293, allocations: 119.3 kB / 478.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1293, allocations: 0 / 478.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.1605, allocations: 7.366 MB / 486.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/11.86, allocations: 11.3 kB / 486.2 MB, free: 2.223 MB / 350.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1)