Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_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.002526/0.002525, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.278/2.278, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001028/0.001028, allocations: 78.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.793e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.09905, allocations: 47.58 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5261, allocations: 77.31 MB / 446.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5264, allocations: 66.97 kB / 446.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0324/0.5588, allocations: 4.658 MB / 451.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5589, allocations: 0 / 451.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.594e-05/0.559, allocations: 4.766 kB / 451.2 MB, free: 11.8 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.00157/0.5605, allocations: 0.5294 MB / 451.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.963e-05/0.5606, allocations: 12.03 kB / 451.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.5607, allocations: 58.03 kB / 451.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.5608, allocations: 31.62 kB / 451.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.5613, allocations: 250.8 kB / 452.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.5613, allocations: 18.38 kB / 452.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.141e-05/0.5614, allocations: 15.88 kB / 452.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006742/0.5621, allocations: 251.5 kB / 452.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.5621, allocations: 3.984 kB / 452.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.5622, allocations: 10.5 kB / 452.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5622, allocations: 8 kB / 452.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005659/0.5628, allocations: 179.1 kB / 452.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.5656, allocations: 1.08 MB / 453.7 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/0.568, allocations: 341.7 kB / 454 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.5684, allocations: 101.2 kB / 454.1 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.116e-05/0.5685, allocations: 4 kB / 454.1 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.5685, allocations: 30.56 kB / 454.1 MB, free: 9.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.587e-06/0.5685, allocations: 3.938 kB / 454.1 MB, free: 9.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.00464/0.5732, allocations: 0.5228 MB / 454.6 MB, free: 8.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.5733, allocations: 55.41 kB / 454.7 MB, free: 8.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.5737, allocations: 198.6 kB / 454.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/0.5738, allocations: 25.7 kB / 454.9 MB, free: 8.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.574, allocations: 217.9 kB / 455.1 MB, free: 8.219 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.349e-05/0.5741, allocations: 49.86 kB / 455.2 MB, free: 8.176 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/0.5741, allocations: 3.5 kB / 455.2 MB, free: 8.176 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.5743, allocations: 318.8 kB / 455.5 MB, free: 7.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.5745, allocations: 66.36 kB / 455.6 MB, free: 7.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.5748, allocations: 76.64 kB / 455.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.575, allocations: 67.48 kB / 455.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.575, allocations: 0 / 455.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004562/0.5796, allocations: 0.5306 MB / 456.2 MB, free: 7.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.5797, allocations: 4 kB / 456.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.5797, allocations: 0 / 456.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005587/0.5803, allocations: 137.6 kB / 456.4 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.5806, allocations: 35.92 kB / 456.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008783/0.5894, allocations: 2.194 MB / 458.6 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.59, allocations: 42.14 kB / 458.6 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.5901, allocations: 11.61 kB / 458.7 MB, free: 4.957 MB / 330.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 (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.0001412/0.5902, allocations: 108.7 kB / 458.8 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.5903, allocations: 23.77 kB / 458.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.812e-05/0.5904, allocations: 23.52 kB / 458.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5905, allocations: 0 / 458.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.5905, allocations: 0 / 458.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5905, allocations: 0 / 458.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005995/0.5911, allocations: 342 kB / 459.1 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.5911, allocations: 0 / 459.1 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.5914, allocations: 31.94 kB / 459.2 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004669/0.5919, allocations: 134.1 kB / 459.3 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.592, allocations: 11.98 kB / 459.3 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008606/0.6006, allocations: 2.17 MB / 461.5 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.6007, allocations: 4.031 kB / 461.5 MB, free: 2.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004962/0.6056, allocations: 0.7082 MB / 462.2 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.6059, allocations: 104.8 kB / 462.3 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.606, allocations: 7.938 kB / 462.3 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005339/0.6065, allocations: 40.03 kB / 462.3 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.6066, allocations: 8.078 kB / 462.4 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.6066, allocations: 15.95 kB / 462.4 MB, free: 1.273 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002427/0.6069, allocations: 149.9 kB / 462.5 MB, free: 1.129 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6069, allocations: 0 / 462.5 MB, free: 1.129 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006539/0.6076, allocations: 83.84 kB / 462.6 MB, free: 1.047 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.005428/0.613, allocations: 1.252 MB / 463.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.6153, allocations: 398.4 kB / 464.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6154, allocations: 0 / 464.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/0.6172, allocations: 306.5 kB / 464.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.6177, allocations: 36.61 kB / 464.6 MB, free: 15.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.6195, allocations: 447.3 kB / 465 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.62, allocations: 0.748 MB / 465.8 MB, free: 13.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.6202, allocations: 71.41 kB / 465.8 MB, free: 13.69 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6202, allocations: 0 / 465.8 MB, free: 13.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.677/3.298, allocations: 4.99 MB / 470.8 MB, free: 8.699 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat