Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009005/0.0009006, allocations: 177.8 kB / 8.697 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.000833/0.0008328, allocations: 86.7 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.942e-05/1.944e-05, allocations: 7.984 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.08912, allocations: 47.6 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4349, allocations: 76.89 MB / 440.1 MB, free: 2.469 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.4353, allocations: 70.58 kB / 440.1 MB, free: 2.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01364/0.4489, allocations: 4.61 MB / 444.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.449, allocations: 0 / 444.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.449, allocations: 8 kB / 444.8 MB, free: 14.51 MB / 330.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.0009796/0.45, allocations: 0.5288 MB / 445.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.4501, allocations: 12.03 kB / 445.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.4502, allocations: 27.62 kB / 445.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.4505, allocations: 256.2 kB / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.4505, allocations: 4 kB / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.4506, allocations: 12 kB / 445.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003402/0.4509, allocations: 167.7 kB / 445.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004094/0.4514, allocations: 218.8 kB / 446 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4514, allocations: 3.938 kB / 446 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.4514, allocations: 4 kB / 446 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4514, allocations: 4 kB / 446 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.453, allocations: 1.033 MB / 447 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.4543, allocations: 338.9 kB / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.4544, allocations: 96.59 kB / 447.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.4545, allocations: 7.984 kB / 447.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.4545, allocations: 33.38 kB / 447.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.853e-06/0.4545, allocations: 0 / 447.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.002511/0.457, allocations: 0.5171 MB / 448 MB, free: 11.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.4571, allocations: 51.41 kB / 448 MB, free: 11.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.4573, allocations: 174.9 kB / 448.2 MB, free: 11.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.4574, allocations: 25.7 kB / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.4575, allocations: 163.9 kB / 448.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.4575, allocations: 46.42 kB / 448.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.36e-05/0.4575, allocations: 0 / 448.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4577, allocations: 329.8 kB / 448.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.4578, allocations: 62.67 kB / 448.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.4579, allocations: 73.45 kB / 448.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.458, allocations: 59.11 kB / 449 MB, free: 10.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.458, allocations: 0 / 449 MB, free: 10.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002318/0.4604, allocations: 0.5305 MB / 449.5 MB, free: 10.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4604, allocations: 7.938 kB / 449.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.4604, allocations: 0 / 449.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.4608, allocations: 135.9 kB / 449.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.4609, allocations: 31.98 kB / 449.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.4654, allocations: 2.108 MB / 451.8 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.4657, allocations: 35.86 kB / 451.8 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.4657, allocations: 11.36 kB / 451.8 MB, free: 8.004 MB / 330.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.0001775/0.4659, allocations: 105 kB / 451.9 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002269/0.4682, allocations: 0.5121 MB / 452.4 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.4683, allocations: 23.72 kB / 452.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.067e-05/0.4683, allocations: 24.7 kB / 452.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4683, allocations: 0 / 452.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.4683, allocations: 0 / 452.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4683, allocations: 96 / 452.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.4688, allocations: 296.8 kB / 452.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.4688, allocations: 7.938 kB / 452.8 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.469, allocations: 27.98 kB / 452.8 MB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002929/0.4693, allocations: 137 kB / 452.9 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.4693, allocations: 7.984 kB / 452.9 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004587/0.4739, allocations: 2.113 MB / 455.1 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4739, allocations: 0 / 455.1 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.4764, allocations: 0.7008 MB / 455.8 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.511e-05/0.4765, allocations: 96.8 kB / 455.8 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.4766, allocations: 4 kB / 455.9 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.4769, allocations: 43.22 kB / 455.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.4769, allocations: 11.94 kB / 455.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.4769, allocations: 7.984 kB / 455.9 MB, free: 4.164 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.4771, allocations: 137.6 kB / 456 MB, free: 4.051 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4771, allocations: 0 / 456 MB, free: 4.051 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004681/0.4775, allocations: 75.84 kB / 456.1 MB, free: 3.977 MB / 330.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.002778/0.4803, allocations: 1.235 MB / 457.4 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.4814, allocations: 361.7 kB / 457.7 MB, free: 2.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4814, allocations: 0 / 457.7 MB, free: 2.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008939/0.4823, allocations: 303.1 kB / 458 MB, free: 2.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.4826, allocations: 27.06 kB / 458 MB, free: 2.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.4836, allocations: 398.3 kB / 458.4 MB, free: 1.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.4839, allocations: 0.7475 MB / 459.2 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.421e-05/0.484, allocations: 21.19 kB / 459.2 MB, free: 1.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.224e-05/0.4841, allocations: 66.91 kB / 459.3 MB, free: 1.004 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.4841, allocations: 0 / 459.3 MB, free: 1.004 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.5085, allocations: 5.484 MB / 464.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.5088, allocations: 151.2 kB / 464.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.257, allocations: 0 / 464.9 MB, free: 11.32 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat