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/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.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"}) [: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.002641/0.002641, allocations: 182.6 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006074/0.006074, allocations: 1.191 MB / 9.061 MB, free: 1.184 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.384/1.384, allocations: 221.4 MB / 231.1 MB, free: 1.633 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.001012/0.001013, allocations: 112.2 kB / 282.3 MB, free: 15.81 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1431/0.1441, allocations: 56.8 MB / 339.1 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.4644, allocations: 50.67 MB / 389.7 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.5814, allocations: 83.6 MB / 473.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.5818, allocations: 75.97 kB / 473.4 MB, free: 1.547 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0337/0.6155, allocations: 11.4 MB / 484.8 MB, free: 6.062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6156, allocations: 8 kB / 484.8 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.578e-05/0.6157, allocations: 43.47 kB / 484.9 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004261/0.6161, allocations: 277.5 kB / 485.1 MB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.968e-05/0.6162, allocations: 15.98 kB / 485.1 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.803e-05/0.6162, allocations: 16 kB / 485.2 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004674/0.6167, allocations: 225.2 kB / 485.4 MB, free: 5.453 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.6172, allocations: 216.8 kB / 485.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6172, allocations: 0 / 485.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.6172, allocations: 0 / 485.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.6172, allocations: 12.47 kB / 485.6 MB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.6191, allocations: 1.044 MB / 486.6 MB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.6195, allocations: 201.6 kB / 486.8 MB, free: 3.902 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.6197, allocations: 127.3 kB / 487 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.784e-05/0.6198, allocations: 20.06 kB / 487 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.6198, allocations: 38.55 kB / 487 MB, free: 3.711 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.323e-06/0.6198, allocations: 0 / 487 MB, free: 3.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00402/0.6239, allocations: 1.315 MB / 488.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.6239, allocations: 59.34 kB / 488.4 MB, free: 2.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.6243, allocations: 221.1 kB / 488.6 MB, free: 2.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.6243, allocations: 25.7 kB / 488.6 MB, free: 2.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.6245, allocations: 183.9 kB / 488.8 MB, free: 1.832 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.6246, allocations: 102.5 kB / 488.9 MB, free: 1.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.6246, allocations: 0 / 488.9 MB, free: 1.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002431/0.6248, allocations: 346.7 kB / 489.3 MB, free: 1.383 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.625, allocations: 111.6 kB / 489.4 MB, free: 1.277 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.6253, allocations: 157.1 kB / 489.5 MB, free: 1.105 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003728/0.6257, allocations: 157.8 kB / 489.7 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.6257, allocations: 0 / 489.7 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001925/0.6276, allocations: 0.6139 MB / 490.3 MB, free: 336 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.6276, allocations: 8 kB / 490.3 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.6277, allocations: 0 / 490.3 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004896/0.6282, allocations: 161.5 kB / 490.5 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.6285, allocations: 51.97 kB / 490.5 MB, free: 108 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.6298, allocations: 1.35 MB / 491.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.6301, allocations: 7.984 kB / 491.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/0.6302, allocations: 16 kB / 491.9 MB, free: 14.68 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: r_mFe.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.r_mAirPar.Phi:DUMMY_DER(fixed = false ) "Magnetic flux from port_p to port_n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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 8,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002165/0.6304, allocations: 125.7 kB / 492 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.6305, allocations: 31.61 kB / 492 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.6323, allocations: 0.5908 MB / 492.6 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.6323, allocations: 4 kB / 492.6 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.6323, allocations: 3.906 kB / 492.6 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6323, allocations: 3.984 kB / 492.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.6345, allocations: 0.9951 MB / 493.6 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.6345, allocations: 4 kB / 493.6 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.6347, allocations: 39.97 kB / 493.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004258/0.6352, allocations: 157.6 kB / 493.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.6352, allocations: 4 kB / 493.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.6363, allocations: 1.349 MB / 495.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.6363, allocations: 4.062 kB / 495.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001913/0.6382, allocations: 0.8231 MB / 496 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002275/0.6405, allocations: 1.362 MB / 497.4 MB, free: 9.008 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.6406, allocations: 100.7 kB / 497.5 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.29e-05/0.6407, allocations: 0 / 497.5 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.6409, allocations: 16.05 kB / 497.5 MB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.641, allocations: 23.88 kB / 497.5 MB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.641, allocations: 12 kB / 497.5 MB, free: 8.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001833/0.6412, allocations: 181.2 kB / 497.7 MB, free: 8.668 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001054/0.6423, allocations: 84 kB / 497.8 MB, free: 8.586 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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 8,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003208/0.6426, allocations: 165.2 kB / 497.9 MB, free: 8.414 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.6433, allocations: 292.2 kB / 498.2 MB, free: 8.129 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6433, allocations: 320 / 498.2 MB, free: 8.129 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.6437, allocations: 163.9 kB / 498.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.644, allocations: 20.88 kB / 498.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.6453, allocations: 0.4968 MB / 498.9 MB, free: 7.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006023/0.6459, allocations: 0.8261 MB / 499.7 MB, free: 6.562 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6459, allocations: 0 / 499.7 MB, free: 6.562 MB / 378.7 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/linux/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)