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: translateModel(FluxTubesExtension.Examples.SaturatedInductor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor") translateModel(FluxTubesExtension.Examples.SaturatedInductor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor") [: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.002347/0.002347, allocations: 177.3 kB / 7.453 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006277/0.006278, allocations: 1.186 MB / 9.056 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.239/1.239, allocations: 221.4 MB / 231.1 MB, free: 1.602 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.0009786/0.0009786, allocations: 111 kB / 282.3 MB, free: 15.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.482e-06/6.522e-06, allocations: 0 / 339 MB, free: 7.043 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2716, allocations: 50.68 MB / 389.6 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.3743, allocations: 83.6 MB / 473.2 MB, free: 1.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.3746, allocations: 75.95 kB / 473.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03158/0.4062, allocations: 10.81 MB / 484.1 MB, free: 6.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.829e-05/0.4062, allocations: 16 kB / 484.1 MB, free: 6.688 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0009904/0.4072, allocations: 0.5689 MB / 484.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4073, allocations: 8.031 kB / 484.7 MB, free: 6.066 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.4074, allocations: 39.53 kB / 484.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.4079, allocations: 277.5 kB / 485 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.4079, allocations: 11.94 kB / 485 MB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.408, allocations: 16 kB / 485 MB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004303/0.4084, allocations: 233.2 kB / 485.3 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.4088, allocations: 216.8 kB / 485.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4088, allocations: 0 / 485.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.4089, allocations: 0 / 485.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.4089, allocations: 11.91 kB / 485.5 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.4107, allocations: 1.052 MB / 486.5 MB, free: 4.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.4111, allocations: 205.6 kB / 486.7 MB, free: 3.902 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.4113, allocations: 112.8 kB / 486.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.4114, allocations: 16 kB / 486.9 MB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.4114, allocations: 38.56 kB / 486.9 MB, free: 3.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.274e-06/0.4114, allocations: 3.938 kB / 486.9 MB, free: 3.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003925/0.4154, allocations: 1.322 MB / 488.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.4154, allocations: 55.41 kB / 488.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.4157, allocations: 221.1 kB / 488.5 MB, free: 2.059 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.4157, allocations: 29.7 kB / 488.5 MB, free: 2.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.926e-05/0.4158, allocations: 180 kB / 488.7 MB, free: 1.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.4159, allocations: 102.5 kB / 488.8 MB, free: 1.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.4159, allocations: 0 / 488.8 MB, free: 1.742 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4161, allocations: 350.7 kB / 489.2 MB, free: 1.391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.4162, allocations: 107.6 kB / 489.3 MB, free: 1.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.4165, allocations: 153.1 kB / 489.4 MB, free: 1.121 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.4168, allocations: 161.8 kB / 489.6 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.4168, allocations: 4.109 kB / 489.6 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001793/0.4186, allocations: 0.6057 MB / 490.2 MB, free: 352 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.4187, allocations: 8 kB / 490.2 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4187, allocations: 0 / 490.2 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.4192, allocations: 165.5 kB / 490.3 MB, free: 172 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.4196, allocations: 59.91 kB / 490.4 MB, free: 112 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.4208, allocations: 1.345 MB / 491.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.421, allocations: 7.984 kB / 491.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.4211, allocations: 16 kB / 491.8 MB, free: 14.69 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.0001615/0.4212, allocations: 119.8 kB / 491.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.39e-05/0.4213, allocations: 27.62 kB / 491.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.4231, allocations: 0.6018 MB / 492.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.4232, allocations: 4 kB / 492.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.4232, allocations: 3.906 kB / 492.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4232, allocations: 3.984 kB / 492.5 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.4254, allocations: 0.9908 MB / 493.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.4254, allocations: 3.938 kB / 493.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.4256, allocations: 47.92 kB / 493.6 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004395/0.4261, allocations: 155.3 kB / 493.7 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.4261, allocations: 4 kB / 493.7 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.4272, allocations: 1.343 MB / 495.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4272, allocations: 0 / 495.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001903/0.4291, allocations: 0.8331 MB / 495.9 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.245e-05/0.4292, allocations: 100.7 kB / 496 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.4293, allocations: 3.984 kB / 496 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.4295, allocations: 8 kB / 496 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.019e-05/0.4296, allocations: 19.97 kB / 496 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.4296, allocations: 16.06 kB / 496 MB, free: 10.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001749/0.4298, allocations: 181.2 kB / 496.2 MB, free: 10.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004342/0.4303, allocations: 83.91 kB / 496.3 MB, free: 9.992 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.0003046/0.4306, allocations: 167 kB / 496.5 MB, free: 9.816 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006587/0.4312, allocations: 283.7 kB / 496.7 MB, free: 9.539 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4313, allocations: 0 / 496.7 MB, free: 9.539 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.4316, allocations: 160.2 kB / 496.9 MB, free: 9.383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.4319, allocations: 23.8 kB / 496.9 MB, free: 9.359 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.4331, allocations: 0.4928 MB / 497.4 MB, free: 8.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.4335, allocations: 0.8223 MB / 498.2 MB, free: 7.984 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4335, allocations: 4 kB / 498.2 MB, free: 7.98 MB / 378.7 MB Notification: Performance of Templates: time 0.008106/0.4416, allocations: 3.753 MB / 0.4902 GB, free: 4.238 MB / 378.7 MB make -j1 -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.makefile (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 & ./FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1)