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.006625/0.006625, allocations: 96.89 kB / 15.73 MB, free: 6.004 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.001381/0.00138, allocations: 196.6 kB / 16.68 MB, free: 5.934 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.449/1.449, 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.009243/0.009243, allocations: 1.237 MB / 291.8 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 68.61 kB / 402.8 MB, free: 9.168 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08408, allocations: 49.71 MB / 452.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.00449/0.0886, allocations: 2.969 MB / 455.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.09114, allocations: 1.405 MB / 456.9 MB, free: 200 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.09132, allocations: 8 kB / 456.9 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005391/0.09188, allocations: 151 kB / 457 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.09225, allocations: 115.2 kB / 457.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007397/0.093, allocations: 267.3 kB / 457.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004855/0.09349, allocations: 430.2 kB / 457.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.09375, allocations: 131.3 kB / 458 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.094, allocations: 175.3 kB / 458.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.09427, allocations: 191.2 kB / 458.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.09433, allocations: 32 kB / 458.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.09468, allocations: 215.6 kB / 458.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.09482, allocations: 91.67 kB / 458.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.09501, allocations: 194.9 kB / 458.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.09567, allocations: 0.5213 MB / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.09569, allocations: 4 kB / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0957, allocations: 0 / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.09571, allocations: 0 / 459.4 MB, free: 13.7 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.001283/0.097, allocations: 0.7126 MB / 460.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.09704, allocations: 8.031 kB / 460.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.521e-05/0.09713, allocations: 70.72 kB / 460.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.218e-05/0.09721, allocations: 44.66 kB / 460.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.09771, allocations: 332.2 kB / 460.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.09775, allocations: 21.03 kB / 460.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.09781, allocations: 32.38 kB / 460.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.09846, allocations: 310.2 kB / 460.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.09848, allocations: 7.875 kB / 460.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.09852, allocations: 16 kB / 460.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.09854, allocations: 8 kB / 460.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006786/0.09922, allocations: 270.5 kB / 461.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.1011, allocations: 1.163 MB / 462.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.1016, allocations: 198.5 kB / 462.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.1018, allocations: 84.84 kB / 462.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.1019, allocations: 15.97 kB / 462.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.1019, allocations: 42.5 kB / 462.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.1019, allocations: 0 / 462.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002975/0.1049, allocations: 0.8983 MB / 463.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.105, allocations: 63.58 kB / 463.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.1053, allocations: 316.5 kB / 463.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.1054, allocations: 29.7 kB / 464 MB, free: 8.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1056, allocations: 240.1 kB / 464.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.733e-05/0.1056, allocations: 99.16 kB / 464.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.1058, allocations: 74.02 kB / 464.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1059, allocations: 338.8 kB / 464.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003381/0.1063, allocations: 120.7 kB / 464.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.1067, allocations: 221.2 kB / 465 MB, free: 7.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007565/0.1075, allocations: 348.7 kB / 465.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1075, allocations: 0 / 465.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001428/0.1089, allocations: 0.6083 MB / 466 MB, free: 6.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1089, allocations: 4 kB / 466 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.109, allocations: 4.219 kB / 466 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/0.1109, allocations: 0.8195 MB / 466.8 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/0.1113, allocations: 75.89 kB / 466.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009256/0.1122, allocations: 1.187 MB / 468.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.1125, allocations: 23.97 kB / 468.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.1125, allocations: 16 kB / 468.1 MB, free: 4.52 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.0001795/0.1127, allocations: 162 kB / 468.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.893e-05/0.1128, allocations: 31.81 kB / 468.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.1141, allocations: 0.526 MB / 468.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1142, allocations: 4 kB / 468.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.1142, allocations: 3.984 kB / 468.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1142, allocations: 3.984 kB / 468.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004712/0.1147, allocations: 377.4 kB / 469.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1147, allocations: 128 / 469.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.1149, allocations: 47.91 kB / 469.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.1168, allocations: 0.8126 MB / 470.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1168, allocations: 4 kB / 470.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000876/0.1177, allocations: 1.175 MB / 471.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1177, allocations: 0 / 471.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.119, allocations: 0.5978 MB / 471.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.924e-05/0.1191, allocations: 104.9 kB / 472 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.1192, allocations: 15.92 kB / 472 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.1194, allocations: 15.98 kB / 472 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.1195, allocations: 23.91 kB / 472 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.1195, allocations: 8 kB / 472 MB, free: 472 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002501/0.1198, allocations: 219.1 kB / 472.2 MB, free: 252 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1198, allocations: 0 / 472.2 MB, free: 252 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004339/0.1202, allocations: 103.9 kB / 472.3 MB, free: 148 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.001837/0.1221, allocations: 1.178 MB / 473.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009346/0.123, allocations: 324.3 kB / 473.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.123, allocations: 0 / 473.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005202/0.1236, allocations: 172.6 kB / 474 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.124, allocations: 53.05 kB / 474 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006245/0.1302, allocations: 3.803 MB / 477.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.1307, allocations: 0.7912 MB / 478.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.1308, allocations: 42.89 kB / 478.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.131, allocations: 123.3 kB / 478.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.131, allocations: 0 / 478.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.1635, allocations: 7.353 MB / 486.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.37, allocations: 14.03 kB / 486.2 MB, free: 2.215 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1)