Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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 3.2.3+maint.om/package.mo): time 0.001418/0.001418, allocations: 179.8 kB / 8.478 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.025/1.025, allocations: 205.2 MB / 214.1 MB, free: 5.09 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008297/0.0008297, allocations: 86.47 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1404/0.1412, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05825/0.1995, allocations: 47.58 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1942/0.3937, allocations: 83.1 MB / 445.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.3939, allocations: 84.72 kB / 445.8 MB, free: 10.64 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.07312/0.4671, allocations: 39.86 MB / 485.7 MB, free: 2.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.4671, allocations: 8 kB / 485.7 MB, free: 2.922 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004256/0.4675, allocations: 280.3 kB / 486 MB, free: 2.645 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.4706, allocations: 1.875 MB / 487.8 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.056e-05/0.4706, allocations: 50.47 kB / 487.9 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.4708, allocations: 39.41 kB / 487.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004804/0.4713, allocations: 270.2 kB / 488.2 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.4718, allocations: 330.8 kB / 488.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.4718, allocations: 0 / 488.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.4719, allocations: 0 / 488.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.4719, allocations: 8 kB / 488.5 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.4758, allocations: 3.003 MB / 491.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.4761, allocations: 179.5 kB / 491.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.4763, allocations: 147.3 kB / 491.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.4764, allocations: 4 kB / 491.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.4764, allocations: 34.53 kB / 491.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 1.903e-06/0.4764, allocations: 0 / 491.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.003261/0.4797, allocations: 2.021 MB / 493.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.4797, allocations: 89.56 kB / 494 MB, free: 11.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00775/0.4875, allocations: 4.693 MB / 498.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.4875, allocations: 25.7 kB / 498.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.4879, allocations: 497.5 kB / 499.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.488, allocations: 158 kB / 499.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.488, allocations: 0 / 499.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4881, allocations: 324.8 kB / 499.7 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.4883, allocations: 126.6 kB / 499.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.4886, allocations: 194.2 kB / 500 MB, free: 7.445 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.4888, allocations: 158.9 kB / 0.4884 GB, free: 7.344 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4888, allocations: 0 / 0.4884 GB, free: 7.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002182/0.491, allocations: 0.9667 MB / 0.4894 GB, free: 6.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.491, allocations: 4 kB / 0.4894 GB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4911, allocations: 0 / 0.4894 GB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004241/0.4915, allocations: 144 kB / 0.4895 GB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.4919, allocations: 91.77 kB / 0.4896 GB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007192/0.4926, allocations: 0.7626 MB / 0.4903 GB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.4931, allocations: 23.86 kB / 0.4904 GB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.4932, allocations: 15.69 kB / 0.4904 GB, free: 5.559 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.4933, allocations: 117 kB / 0.4905 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003712/0.4937, allocations: 268.4 kB / 0.4907 GB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.4948, allocations: 0.7182 MB / 0.4914 GB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4948, allocations: 4 kB / 0.4914 GB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4948, allocations: 0 / 0.4914 GB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4949, allocations: 0 / 0.4914 GB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.4965, allocations: 1.619 MB / 0.493 GB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.4965, allocations: 3.984 kB / 0.493 GB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.497, allocations: 98.52 kB / 0.4931 GB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002374/0.4973, allocations: 96.62 kB / 0.4932 GB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.4973, allocations: 4 kB / 0.4932 GB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005223/0.4978, allocations: 0.6533 MB / 0.4939 GB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4978, allocations: 0 / 0.4939 GB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001294/0.4991, allocations: 1.004 MB / 0.4948 GB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001702/0.5009, allocations: 1.609 MB / 0.4964 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.502, allocations: 0.6733 MB / 0.4971 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.5023, allocations: 0 / 0.4971 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.5028, allocations: 24.14 kB / 0.4971 GB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.5029, allocations: 28.34 kB / 0.4971 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.5029, allocations: 19.98 kB / 0.4971 GB, free: 15.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.004398/0.5073, allocations: 3.642 MB / 0.5007 GB, free: 11.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001424/0.5088, allocations: 300 kB / 0.501 GB, free: 11.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006406/0.5094, allocations: 322.4 kB / 0.5013 GB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006356/0.5101, allocations: 339.6 kB / 0.5016 GB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5101, allocations: 0 / 0.5016 GB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.5104, allocations: 189.6 kB / 0.5018 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008096/0.5112, allocations: 167 kB / 0.502 GB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/0.5183, allocations: 4.816 MB / 0.5067 GB, free: 5.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/0.5203, allocations: 2 MB / 0.5086 GB, free: 3.539 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.5204, allocations: 0 / 0.5086 GB, free: 3.539 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)