Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.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.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",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.001059/0.001059, allocations: 193.9 kB / 8.485 MB, free: 1.785 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.04/1.04, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008617/0.0008617, allocations: 97.66 kB / 262.1 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08493/0.08582, allocations: 52.97 MB / 315.1 MB, free: 8.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.2647, allocations: 47.56 MB / 362.6 MB, free: 45.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.088/0.3528, allocations: 85.56 MB / 448.2 MB, free: 308 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.353, allocations: 75.95 kB / 448.3 MB, free: 232 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.09439/0.4474, allocations: 36.93 MB / 485.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4474, allocations: 8 kB / 485.2 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.4476, allocations: 126.4 kB / 485.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.4488, allocations: 0.7305 MB / 486 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.4488, allocations: 12 kB / 486.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.968e-05/0.4489, allocations: 16 kB / 486.1 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003673/0.4492, allocations: 193.1 kB / 486.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.4497, allocations: 270.4 kB / 486.5 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4497, allocations: 0 / 486.5 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.4498, allocations: 0 / 486.5 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4498, allocations: 8 kB / 486.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.4517, allocations: 1.12 MB / 487.6 MB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.452, allocations: 210.4 kB / 487.9 MB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.4524, allocations: 275.2 kB / 488.1 MB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001445/0.4539, allocations: 1.274 MB / 489.4 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.4539, allocations: 38.5 kB / 489.4 MB, free: 6.648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.084e-06/0.4539, allocations: 0 / 489.4 MB, free: 6.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.002512/0.4564, allocations: 1.161 MB / 490.6 MB, free: 5.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.4565, allocations: 110.8 kB / 490.7 MB, free: 5.297 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008373/0.4573, allocations: 0.709 MB / 491.4 MB, free: 4.582 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.4574, allocations: 29.7 kB / 491.4 MB, free: 4.547 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.4575, allocations: 193.6 kB / 491.6 MB, free: 4.355 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.4576, allocations: 122.1 kB / 491.8 MB, free: 4.234 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.4576, allocations: 4 kB / 491.8 MB, free: 4.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.4577, allocations: 317.9 kB / 492.1 MB, free: 3.914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.4579, allocations: 100.3 kB / 492.2 MB, free: 3.812 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.4581, allocations: 134.8 kB / 492.3 MB, free: 3.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.4584, allocations: 144.1 kB / 492.4 MB, free: 3.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4585, allocations: 0 / 492.4 MB, free: 3.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008859/0.4593, allocations: 473.8 kB / 492.9 MB, free: 3.055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.4594, allocations: 4 kB / 492.9 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/0.4594, allocations: 15.91 kB / 492.9 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002408/0.4597, allocations: 77.66 kB / 493 MB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.4599, allocations: 39.91 kB / 493 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.4623, allocations: 2.871 MB / 495.9 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.4626, allocations: 7.906 kB / 495.9 MB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.4626, allocations: 24.05 kB / 495.9 MB, free: 15.78 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.4628, allocations: 146.5 kB / 496.1 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.4629, allocations: 122.5 kB / 496.2 MB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/0.4647, allocations: 0.6789 MB / 496.9 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.4647, allocations: 11.91 kB / 496.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4647, allocations: 0 / 496.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4647, allocations: 3.984 kB / 496.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006219/0.4653, allocations: 0.5523 MB / 497.4 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.639e-05/0.4654, allocations: 15.98 kB / 497.5 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.4656, allocations: 35.92 kB / 497.5 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.4658, allocations: 73.67 kB / 497.6 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.41e-05/0.4658, allocations: 8 kB / 497.6 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002163/0.468, allocations: 2.866 MB / 0.4887 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.468, allocations: 4 kB / 0.4887 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001168/0.4692, allocations: 0.7825 MB / 0.4895 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001513/0.4707, allocations: 1.331 MB / 0.4908 GB, free: 8.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003669/0.4711, allocations: 287.4 kB / 0.4911 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.4712, allocations: 3.906 kB / 0.4911 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.4715, allocations: 8 kB / 0.4911 GB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.62e-05/0.4716, allocations: 23.97 kB / 0.4911 GB, free: 8.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.4716, allocations: 19.98 kB / 0.4911 GB, free: 8.457 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005961/0.4722, allocations: 0.5555 MB / 0.4916 GB, free: 7.898 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001522/0.4738, allocations: 255.8 kB / 0.4919 GB, free: 7.648 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008166/0.4746, allocations: 410.8 kB / 0.4923 GB, free: 7.242 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009064/0.4755, allocations: 0.6366 MB / 0.4929 GB, free: 6.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4755, allocations: 8.062 kB / 0.4929 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.4761, allocations: 0.535 MB / 0.4934 GB, free: 5.957 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.4765, allocations: 80.72 kB / 0.4935 GB, free: 5.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.4785, allocations: 1.058 MB / 0.4945 GB, free: 4.781 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006219/0.4791, allocations: 1.06 MB / 0.4956 GB, free: 3.695 MB / 394.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4791, allocations: 0 / 0.4956 GB, free: 3.695 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)