Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 182 kB / 8.129 MB, free: 2.219 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.17/1.17, allocations: 221.4 MB / 229.9 MB, free: 3.102 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.0009968/0.0009968, allocations: 102.6 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09826/0.09929, allocations: 55.82 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.2838, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08451/0.3684, allocations: 78.09 MB / 465.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.3686, allocations: 80.44 kB / 465.2 MB, free: 8.645 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.01463/0.3833, allocations: 5.078 MB / 470.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.3833, allocations: 12 kB / 470.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.3834, allocations: 31.62 kB / 470.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.3837, allocations: 251.5 kB / 470.5 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.3837, allocations: 11.98 kB / 470.5 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.3838, allocations: 8 kB / 470.6 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003388/0.3841, allocations: 160.8 kB / 470.7 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.3845, allocations: 229.8 kB / 470.9 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3845, allocations: 3.906 kB / 470.9 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.3846, allocations: 0 / 470.9 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3846, allocations: 4 kB / 470.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.3862, allocations: 1.039 MB / 472 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3876, allocations: 301.5 kB / 472.3 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.3878, allocations: 97.75 kB / 472.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.3878, allocations: 8 kB / 472.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.3879, allocations: 30.56 kB / 472.4 MB, free: 1.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.3879, allocations: 0 / 472.4 MB, free: 1.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002761/0.3906, allocations: 0.537 MB / 472.9 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.3907, allocations: 55.34 kB / 473 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.3909, allocations: 170 kB / 473.2 MB, free: 452 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.3909, allocations: 27.67 kB / 473.2 MB, free: 420 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.391, allocations: 148.1 kB / 473.3 MB, free: 268 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.391, allocations: 43.27 kB / 473.4 MB, free: 224 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.409e-05/0.3911, allocations: 0 / 473.4 MB, free: 224 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3912, allocations: 326.8 kB / 473.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.3914, allocations: 59.98 kB / 473.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.3915, allocations: 77.7 kB / 473.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.3916, allocations: 59.11 kB / 473.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3917, allocations: 0 / 473.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002676/0.3943, allocations: 0.5603 MB / 474.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3944, allocations: 4 kB / 474.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3944, allocations: 0 / 474.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.3947, allocations: 137.5 kB / 474.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.3949, allocations: 35.98 kB / 474.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005092/0.4, allocations: 2.128 MB / 476.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.4003, allocations: 29.09 kB / 476.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.4004, allocations: 19.89 kB / 476.8 MB, free: 12.66 MB / 362.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.000195/0.4006, allocations: 105 kB / 476.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.4006, allocations: 19.81 kB / 476.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.659e-05/0.4007, allocations: 21.45 kB / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.4007, allocations: 4.75 kB / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.4007, allocations: 0 / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4007, allocations: 3.906 kB / 476.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.4011, allocations: 281.9 kB / 477.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4011, allocations: 9.406 kB / 477.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.4013, allocations: 39.91 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002665/0.4016, allocations: 128.8 kB / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.4016, allocations: 8 kB / 477.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005193/0.4068, allocations: 2.166 MB / 479.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4068, allocations: 3.906 kB / 479.6 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002808/0.4097, allocations: 0.7238 MB / 480.3 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00312/0.4128, allocations: 1.177 MB / 481.5 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.788e-05/0.4129, allocations: 104.8 kB / 481.6 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.088e-05/0.4129, allocations: 0 / 481.6 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003244/0.4133, allocations: 40.03 kB / 481.6 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.4133, allocations: 4 kB / 481.6 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.4133, allocations: 8.922 kB / 481.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001242/0.4135, allocations: 136.6 kB / 481.8 MB, free: 7.473 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001031/0.4145, allocations: 83.69 kB / 481.8 MB, free: 7.391 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.000154/0.4147, allocations: 107.2 kB / 482 MB, free: 7.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.4158, allocations: 362.9 kB / 482.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4158, allocations: 0 / 482.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4169, allocations: 301.8 kB / 482.6 MB, free: 6.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.4171, allocations: 22.91 kB / 482.6 MB, free: 6.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.4182, allocations: 403.8 kB / 483 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003566/0.4186, allocations: 0.7627 MB / 483.8 MB, free: 5.387 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4186, allocations: 0 / 483.8 MB, free: 5.387 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat