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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 198.2 kB / 8.768 MB, free: 316 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008178/0.0008176, allocations: 102.8 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.833e-05, allocations: 8 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 51.47 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.4592, allocations: 78.98 MB / 474.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.4595, allocations: 71.69 kB / 474.3 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.013/0.4725, allocations: 4.887 MB / 479.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4725, allocations: 0 / 479.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.4725, allocations: 9.688 kB / 479.2 MB, free: 9.789 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.0008823/0.4734, allocations: 0.5364 MB / 479.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.4735, allocations: 12.03 kB / 479.8 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.4737, allocations: 39.61 kB / 479.8 MB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.474, allocations: 257.6 kB / 480 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.474, allocations: 4 kB / 480 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.4741, allocations: 15.31 kB / 480.1 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003089/0.4744, allocations: 159.8 kB / 480.2 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.4747, allocations: 223.8 kB / 480.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.4747, allocations: 0 / 480.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.4748, allocations: 4 kB / 480.4 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.4748, allocations: 4 kB / 480.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.4763, allocations: 1.031 MB / 481.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.4776, allocations: 325.9 kB / 481.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.4777, allocations: 107.3 kB / 481.9 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.4778, allocations: 4 kB / 481.9 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.4778, allocations: 30.56 kB / 481.9 MB, free: 7.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.4778, allocations: 0 / 481.9 MB, free: 7.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002226/0.48, allocations: 0.5063 MB / 482.4 MB, free: 6.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.96e-05/0.48, allocations: 59.39 kB / 482.5 MB, free: 6.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.4802, allocations: 176.3 kB / 482.7 MB, free: 6.602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.4802, allocations: 25.7 kB / 482.7 MB, free: 6.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.418e-05/0.4803, allocations: 153.6 kB / 482.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.4803, allocations: 50.17 kB / 482.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.4804, allocations: 0 / 482.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.4804, allocations: 333.2 kB / 483.2 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.124e-05/0.4805, allocations: 53.19 kB / 483.3 MB, free: 6.043 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.203e-05/0.4806, allocations: 82.48 kB / 483.3 MB, free: 5.984 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.4807, allocations: 60.22 kB / 483.4 MB, free: 5.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4807, allocations: 0 / 483.4 MB, free: 5.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002153/0.4829, allocations: 0.5331 MB / 483.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.4829, allocations: 7.938 kB / 483.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4829, allocations: 0 / 483.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002999/0.4832, allocations: 139.7 kB / 484.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.4834, allocations: 31.98 kB / 484.1 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003808/0.4872, allocations: 2.099 MB / 486.2 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.4875, allocations: 39.84 kB / 486.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.4875, allocations: 4 kB / 486.3 MB, free: 3.297 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.0001409/0.4877, allocations: 117.9 kB / 486.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002099/0.4898, allocations: 0.5093 MB / 486.9 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.801e-05/0.4898, allocations: 23.72 kB / 486.9 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.4899, allocations: 24.77 kB / 486.9 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4899, allocations: 96 / 486.9 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.4899, allocations: 6.141 kB / 486.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.4899, allocations: 0 / 486.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003312/0.4903, allocations: 289.7 kB / 487.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.4903, allocations: 0 / 487.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.4904, allocations: 39.23 kB / 487.3 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.4906, allocations: 131.8 kB / 487.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.4907, allocations: 0 / 487.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003892/0.4946, allocations: 2.134 MB / 489.5 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4946, allocations: 4.094 kB / 489.5 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.497, allocations: 0.6872 MB / 490.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.4971, allocations: 104.7 kB / 490.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.4971, allocations: 0 / 490.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003165/0.4974, allocations: 40.03 kB / 490.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.4975, allocations: 15.88 kB / 490.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.4975, allocations: 4 kB / 490.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.4977, allocations: 142.9 kB / 490.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4977, allocations: 4 kB / 490.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005309/0.4982, allocations: 79.84 kB / 490.6 MB, free: 15.25 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.002797/0.501, allocations: 1.242 MB / 491.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.5021, allocations: 351.5 kB / 492.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5021, allocations: 0 / 492.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008958/0.5031, allocations: 305.6 kB / 492.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.5034, allocations: 25.91 kB / 492.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.5045, allocations: 414.1 kB / 492.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.5049, allocations: 0.7514 MB / 493.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.877e-05/0.505, allocations: 13.19 kB / 493.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.764e-05/0.5051, allocations: 68.42 kB / 493.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5051, allocations: 0 / 493.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.5339, allocations: 5.477 MB / 499.2 MB, free: 6.883 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.5341, allocations: 158.2 kB / 499.4 MB, free: 6.684 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.348, allocations: 0 / 499.4 MB, free: 6.684 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