Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",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.001037/0.001037, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009165/0.0009164, allocations: 92.58 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1034/0.1044, allocations: 56.9 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09476/0.1992, allocations: 51.48 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2283/0.4275, allocations: 78.91 MB / 473.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/0.4278, allocations: 72.44 kB / 473.7 MB, free: 12.88 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01331/0.4411, allocations: 5.178 MB / 478.9 MB, free: 9.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.4412, allocations: 8 kB / 478.9 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.4413, allocations: 47.61 kB / 478.9 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.4416, allocations: 254.5 kB / 479.2 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.4416, allocations: 8 kB / 479.2 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.4416, allocations: 12 kB / 479.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002971/0.4419, allocations: 162.7 kB / 479.3 MB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.4423, allocations: 224.2 kB / 479.6 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.4423, allocations: 4 kB / 479.6 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.4423, allocations: 0 / 479.6 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.4423, allocations: 7.984 kB / 479.6 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.4437, allocations: 1.031 MB / 480.6 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.445, allocations: 306.4 kB / 480.9 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.4451, allocations: 97.91 kB / 481 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.4452, allocations: 0 / 481 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.4452, allocations: 36.88 kB / 481 MB, free: 7.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.4452, allocations: 4 kB / 481 MB, free: 7.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.00257/0.4478, allocations: 0.5348 MB / 481.6 MB, free: 7.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/0.4478, allocations: 54.5 kB / 481.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.4479, allocations: 172.9 kB / 481.8 MB, free: 7.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.448, allocations: 25.7 kB / 481.8 MB, free: 6.988 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.845e-05/0.448, allocations: 139.7 kB / 482 MB, free: 6.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.4481, allocations: 49.95 kB / 482 MB, free: 6.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.4481, allocations: 0 / 482 MB, free: 6.812 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.307e-05/0.4481, allocations: 333.6 kB / 482.3 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.4483, allocations: 52 kB / 482.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.4484, allocations: 78.58 kB / 482.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.4485, allocations: 63.53 kB / 482.5 MB, free: 6.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4485, allocations: 0 / 482.5 MB, free: 6.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002471/0.451, allocations: 0.5521 MB / 483.1 MB, free: 5.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.451, allocations: 8 kB / 483.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.451, allocations: 7.828 kB / 483.1 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.4513, allocations: 134.7 kB / 483.2 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.4515, allocations: 35.98 kB / 483.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004455/0.4559, allocations: 2.117 MB / 485.4 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.4562, allocations: 47.95 kB / 485.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.4562, allocations: 4 kB / 485.4 MB, free: 3.645 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 (16): * Single equations (assignments): 15 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.4564, allocations: 113.6 kB / 485.5 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.696e-05/0.4564, allocations: 15.91 kB / 485.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.583e-05/0.4565, allocations: 27.89 kB / 485.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.4565, allocations: 0 / 485.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.4565, allocations: 3.906 kB / 485.6 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4565, allocations: 3.984 kB / 485.6 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002606/0.4567, allocations: 280.5 kB / 485.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4568, allocations: 0 / 485.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.4569, allocations: 39.11 kB / 485.9 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/0.4571, allocations: 131.8 kB / 486 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.4572, allocations: 3.984 kB / 486 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004597/0.4618, allocations: 2.162 MB / 488.2 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4618, allocations: 3.938 kB / 488.2 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002609/0.4644, allocations: 0.7217 MB / 488.9 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002918/0.4673, allocations: 1.183 MB / 490.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.4674, allocations: 92.48 kB / 490.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.4675, allocations: 4.062 kB / 490.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.4678, allocations: 40.84 kB / 490.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.4678, allocations: 7.984 kB / 490.2 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.4679, allocations: 11.92 kB / 490.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001064/0.468, allocations: 141.1 kB / 490.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009816/0.469, allocations: 86.12 kB / 490.5 MB, free: 14.94 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001574/0.4691, allocations: 106.5 kB / 490.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.4702, allocations: 367 kB / 490.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4702, allocations: 0 / 490.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000957/0.4712, allocations: 304.7 kB / 491.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.4714, allocations: 18.94 kB / 491.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.4725, allocations: 397.8 kB / 491.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.4728, allocations: 0.7695 MB / 492.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4728, allocations: 0 / 492.4 MB, free: 13.05 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat