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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005753/0.005753, allocations: 179.5 kB / 7.454 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009251/0.009251, allocations: 1.192 MB / 9.057 MB, free: 1.188 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.399/1.399, allocations: 221.4 MB / 231.1 MB, free: 1.984 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.0009992/0.0009993, allocations: 95.2 kB / 282.2 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1446/0.1457, allocations: 56.82 MB / 339.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.4953, allocations: 50.67 MB / 389.7 MB, free: 37.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.6165, allocations: 84.59 MB / 474.3 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.6168, allocations: 72.56 kB / 474.4 MB, free: 0.6836 MB / 346.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.03989/0.6567, allocations: 13.05 MB / 487.4 MB, free: 3.535 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.6568, allocations: 8 kB / 487.4 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.657, allocations: 39.53 kB / 487.5 MB, free: 3.488 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006807/0.6577, allocations: 318.4 kB / 487.8 MB, free: 3.141 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.6577, allocations: 11.91 kB / 487.8 MB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.6578, allocations: 20 kB / 487.8 MB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004727/0.6583, allocations: 221.3 kB / 488 MB, free: 2.891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004494/0.6587, allocations: 224.8 kB / 488.3 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.6588, allocations: 0 / 488.3 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.6588, allocations: 3.984 kB / 488.3 MB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.6588, allocations: 8 kB / 488.3 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.6609, allocations: 1.127 MB / 489.4 MB, free: 1.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.6612, allocations: 174.6 kB / 489.6 MB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.6614, allocations: 76.03 kB / 489.6 MB, free: 1.188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.806e-05/0.6615, allocations: 15.97 kB / 489.7 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.6615, allocations: 30.56 kB / 489.7 MB, free: 1.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.704e-06/0.6615, allocations: 0 / 489.7 MB, free: 1.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002983/0.6645, allocations: 0.7503 MB / 490.4 MB, free: 376 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.6646, allocations: 55.64 kB / 490.5 MB, free: 308 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003476/0.6649, allocations: 279.3 kB / 490.8 MB, free: 20 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.665, allocations: 25.7 kB / 490.8 MB, free: 15.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.6651, allocations: 207.5 kB / 491 MB, free: 15.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.745e-05/0.6652, allocations: 90.64 kB / 491.1 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.6652, allocations: 0 / 491.1 MB, free: 15.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6654, allocations: 342.8 kB / 491.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.6656, allocations: 84.73 kB / 491.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.6658, allocations: 192.8 kB / 491.7 MB, free: 15.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.6664, allocations: 191.8 kB / 491.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.6664, allocations: 0 / 491.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001304/0.6677, allocations: 0.489 MB / 492.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.6678, allocations: 4.406 kB / 492.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.6678, allocations: 8 kB / 492.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004182/0.6682, allocations: 93.66 kB / 492.5 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.6686, allocations: 95.81 kB / 492.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.6698, allocations: 1.253 MB / 493.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.6701, allocations: 19.98 kB / 493.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/0.6702, allocations: 20.05 kB / 493.9 MB, free: 12.79 MB / 378.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.0001902/0.6704, allocations: 120.8 kB / 494 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.088e-05/0.6705, allocations: 31.62 kB / 494 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.6718, allocations: 452.9 kB / 494.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.6718, allocations: 4 kB / 494.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.6718, allocations: 0 / 494.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.6718, allocations: 0 / 494.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004344/0.6723, allocations: 322 kB / 494.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.6723, allocations: 0 / 494.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.6725, allocations: 51.91 kB / 494.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.6728, allocations: 93.59 kB / 494.9 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.6729, allocations: 7.984 kB / 494.9 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.674, allocations: 1.245 MB / 496.2 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.674, allocations: 7.906 kB / 496.2 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001202/0.6752, allocations: 0.5063 MB / 496.7 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001287/0.6765, allocations: 0.8846 MB / 497.6 MB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.6766, allocations: 108.7 kB / 497.7 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.29e-05/0.6767, allocations: 0 / 497.7 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.6769, allocations: 23.98 kB / 497.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/0.677, allocations: 11.97 kB / 497.7 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.6771, allocations: 12 kB / 497.7 MB, free: 8.758 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002373/0.6773, allocations: 207.1 kB / 497.9 MB, free: 8.559 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001124/0.6784, allocations: 95.91 kB / 498 MB, free: 8.465 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.0004153/0.6789, allocations: 188.5 kB / 498.2 MB, free: 8.273 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.6796, allocations: 252 kB / 498.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6796, allocations: 0 / 498.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003286/0.68, allocations: 132.6 kB / 498.6 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.6804, allocations: 35.12 kB / 498.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.6817, allocations: 402.7 kB / 499 MB, free: 7.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.6824, allocations: 0.8395 MB / 499.8 MB, free: 6.582 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6824, allocations: 0 / 499.8 MB, free: 6.582 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)