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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01329/0.01329, allocations: 1.184 MB / 9.253 MB, free: 1.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.5 MB / 231.5 MB, free: 6.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 86.92 kB / 282.6 MB, free: 3.816 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.046e-05/2.037e-05, allocations: 7.938 kB / 339.6 MB, free: 7.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1226, allocations: 50.68 MB / 390.3 MB, free: 5.203 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3858/0.5085, allocations: 84.65 MB / 474.9 MB, free: 7.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.5088, allocations: 71.95 kB / 475 MB, free: 7.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03674/0.5456, allocations: 12.79 MB / 487.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5456, allocations: 0 / 487.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.5456, allocations: 8 kB / 487.8 MB, free: 10.46 MB / 362.7 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.001054/0.5467, allocations: 0.6122 MB / 488.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.5468, allocations: 11.98 kB / 488.4 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.069e-05/0.5469, allocations: 47.53 kB / 488.5 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.5474, allocations: 311 kB / 488.8 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.5474, allocations: 12 kB / 488.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.5475, allocations: 24 kB / 488.8 MB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004034/0.5479, allocations: 209.5 kB / 489 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.5483, allocations: 230.1 kB / 489.3 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.5483, allocations: 0 / 489.3 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.5484, allocations: 4 kB / 489.3 MB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5484, allocations: 4 kB / 489.3 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.5502, allocations: 1.135 MB / 490.4 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.5506, allocations: 166.6 kB / 490.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.5507, allocations: 72.84 kB / 490.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.913e-05/0.5508, allocations: 8 kB / 490.6 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.5508, allocations: 34.91 kB / 490.7 MB, free: 7.398 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.5508, allocations: 4 kB / 490.7 MB, free: 7.395 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002495/0.5533, allocations: 0.7289 MB / 491.4 MB, free: 6.652 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.5534, allocations: 63.58 kB / 491.5 MB, free: 6.578 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.5537, allocations: 265 kB / 491.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.5537, allocations: 33.69 kB / 491.8 MB, free: 6.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.5539, allocations: 239.8 kB / 492 MB, free: 6.035 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.43e-05/0.554, allocations: 90.66 kB / 492.1 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.468e-05/0.554, allocations: 0 / 492.1 MB, free: 5.945 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5542, allocations: 346.8 kB / 492.4 MB, free: 5.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.5543, allocations: 80.73 kB / 492.5 MB, free: 5.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.5545, allocations: 184.9 kB / 492.7 MB, free: 5.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005241/0.5551, allocations: 183.8 kB / 492.9 MB, free: 5.113 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5551, allocations: 0 / 492.9 MB, free: 5.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001199/0.5563, allocations: 490.9 kB / 493.3 MB, free: 4.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.5563, allocations: 8 kB / 493.3 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5563, allocations: 0 / 493.3 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.5567, allocations: 97.61 kB / 493.4 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.557, allocations: 87.83 kB / 493.5 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.5582, allocations: 1.23 MB / 494.8 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.5585, allocations: 24.11 kB / 494.8 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.5585, allocations: 16.12 kB / 494.8 MB, free: 3.105 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.H:DUMMY_STATE(unit = "A/m" ) "Magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.core.H:DUMMY_DER(fixed = false ) "Magnetic field strength" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.5587, allocations: 132.8 kB / 494.9 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001088/0.5598, allocations: 399.6 kB / 495.3 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.5599, allocations: 35.56 kB / 495.3 MB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.561, allocations: 435.4 kB / 495.8 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5611, allocations: 4 kB / 495.8 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.5611, allocations: 3.938 kB / 495.8 MB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.5611, allocations: 3.984 kB / 495.8 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004062/0.5615, allocations: 318 kB / 496.1 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5615, allocations: 0 / 496.1 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.5617, allocations: 47.97 kB / 496.1 MB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002258/0.562, allocations: 93.66 kB / 496.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.562, allocations: 3.953 kB / 496.2 MB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.563, allocations: 1.23 MB / 497.5 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.563, allocations: 0 / 497.5 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.5642, allocations: 0.5005 MB / 498 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.5643, allocations: 108.7 kB / 498.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.5643, allocations: 0 / 498.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.5646, allocations: 16.11 kB / 498.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.454e-05/0.5646, allocations: 19.91 kB / 498.1 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.5647, allocations: 19.98 kB / 498.1 MB, free: 15.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002052/0.5649, allocations: 208.6 kB / 498.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5649, allocations: 0 / 498.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004311/0.5653, allocations: 87.94 kB / 498.4 MB, free: 15.31 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001574/0.5669, allocations: 1.093 MB / 499.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.5675, allocations: 244.9 kB / 499.7 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5675, allocations: 192 / 499.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.5678, allocations: 147.7 kB / 499.9 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.5681, allocations: 31.73 kB / 499.9 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.5692, allocations: 463.3 kB / 0.4887 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.5696, allocations: 0.803 MB / 0.4894 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000163/0.5698, allocations: 47.19 kB / 0.4895 GB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.57, allocations: 111.4 kB / 0.4896 GB, free: 12.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.57, allocations: 0 / 0.4896 GB, free: 12.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.6034, allocations: 6.375 MB / 0.4958 GB, free: 5.957 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003342/0.6039, allocations: 137.7 kB / 0.4959 GB, free: 5.766 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.79, allocations: 0 / 0.4959 GB, free: 5.766 MB / 378.7 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/linux/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)