Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_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 trunk/package.mo): time 0.0009666/0.0009666, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.121/1.121, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008621, allocations: 94.75 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09658/0.09746, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.1837, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.3974, allocations: 81.25 MB / 476 MB, free: 11.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3977, allocations: 77.45 kB / 476 MB, free: 11.22 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.01703/0.4147, allocations: 7.515 MB / 483.6 MB, free: 5.672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.4148, allocations: 8 kB / 483.6 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.4149, allocations: 47.52 kB / 483.6 MB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.4152, allocations: 268 kB / 483.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.4153, allocations: 12 kB / 483.9 MB, free: 5.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.4153, allocations: 20 kB / 483.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002796/0.4156, allocations: 167.6 kB / 484.1 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.4159, allocations: 198 kB / 484.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.4159, allocations: 0 / 484.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.4159, allocations: 0 / 484.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.4159, allocations: 8 kB / 484.3 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.4172, allocations: 0.9634 MB / 485.2 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.4174, allocations: 133.5 kB / 485.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.4175, allocations: 95.27 kB / 485.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.4176, allocations: 3.984 kB / 485.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.4176, allocations: 34.56 kB / 485.5 MB, free: 3.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.313e-06/0.4176, allocations: 4 kB / 485.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.003315/0.4209, allocations: 1.095 MB / 486.6 MB, free: 2.992 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.43e-05/0.4209, allocations: 55.41 kB / 486.6 MB, free: 2.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.4211, allocations: 193.7 kB / 486.8 MB, free: 2.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.4211, allocations: 29.7 kB / 486.9 MB, free: 2.723 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.24e-05/0.4212, allocations: 166.6 kB / 487 MB, free: 2.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.685e-05/0.4212, allocations: 108.8 kB / 487.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/0.4212, allocations: 0 / 487.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.266e-05/0.4213, allocations: 332.6 kB / 487.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.4214, allocations: 91.25 kB / 487.5 MB, free: 2.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.4216, allocations: 143.6 kB / 487.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.4218, allocations: 105.4 kB / 487.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.4218, allocations: 1.781 kB / 487.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001402/0.4232, allocations: 498.5 kB / 488.3 MB, free: 1.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.4232, allocations: 5.719 kB / 488.3 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4232, allocations: 0 / 488.3 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008196/0.424, allocations: 191.9 kB / 488.5 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.4243, allocations: 59.03 kB / 488.5 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/0.4283, allocations: 3.582 MB / 492.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.4285, allocations: 5.312 kB / 492.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.4285, allocations: 11.31 kB / 492.1 MB, free: 13.94 MB / 362.7 MB 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 (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 9.19e-05/0.4286, allocations: 116.9 kB / 492.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.4287, allocations: 27.62 kB / 492.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.16e-05/0.4288, allocations: 33.28 kB / 492.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.4288, allocations: 4 kB / 492.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4288, allocations: 0 / 492.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.4288, allocations: 7.984 kB / 492.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.4307, allocations: 0.8561 MB / 493.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4307, allocations: 3.938 kB / 493.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.4309, allocations: 44 kB / 493.2 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000801/0.4318, allocations: 185.8 kB / 493.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/0.4318, allocations: 11.89 kB / 493.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/0.4359, allocations: 3.566 MB / 497 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4359, allocations: 0 / 497 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001694/0.4376, allocations: 0.6808 MB / 497.7 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001921/0.4395, allocations: 1.191 MB / 498.8 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.4396, allocations: 92.83 kB / 498.9 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.4396, allocations: 8.859 kB / 498.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.4399, allocations: 7.906 kB / 499 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.552e-05/0.44, allocations: 24 kB / 499 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.44, allocations: 8 kB / 499 MB, free: 7.785 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001156/0.4401, allocations: 154.2 kB / 499.1 MB, free: 7.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001164/0.4413, allocations: 87.06 kB / 499.2 MB, free: 7.578 MB / 362.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 (18): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001875/0.4415, allocations: 119.2 kB / 499.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000685/0.4422, allocations: 474.1 kB / 499.8 MB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4422, allocations: 320 / 499.8 MB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.4426, allocations: 357.6 kB / 0.4884 GB, free: 6.746 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.4428, allocations: 11.05 kB / 0.4884 GB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.4438, allocations: 496.9 kB / 0.4889 GB, free: 6.289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.4442, allocations: 0.7991 MB / 0.4897 GB, free: 5.465 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4442, allocations: 0 / 0.4897 GB, free: 5.465 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1)