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.00147/0.00147, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007817/0.0007817, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.177e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08678, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2861/0.373, allocations: 77.3 MB / 447.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.3732, allocations: 74.02 kB / 447.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01327/0.3865, allocations: 4.66 MB / 452.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3865, allocations: 0 / 452.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.3866, allocations: 4 kB / 452.2 MB, free: 11.89 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.0009584/0.3875, allocations: 0.5383 MB / 452.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3876, allocations: 8.031 kB / 452.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.838e-05/0.3877, allocations: 56.11 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.539e-05/0.3877, allocations: 31.62 kB / 452.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.3881, allocations: 252.6 kB / 453 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.3881, allocations: 11.62 kB / 453 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.3881, allocations: 21.33 kB / 453.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.3885, allocations: 245.8 kB / 453.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3886, allocations: 11.94 kB / 453.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.3886, allocations: 5.812 kB / 453.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.3886, allocations: 4 kB / 453.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.3889, allocations: 177 kB / 453.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3905, allocations: 1.091 MB / 454.6 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.3918, allocations: 330.3 kB / 454.9 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.392, allocations: 106.8 kB / 455 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.392, allocations: 0 / 455 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.392, allocations: 38.12 kB / 455.1 MB, free: 9.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.392, allocations: 0 / 455.1 MB, free: 9.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.002354/0.3944, allocations: 0.5215 MB / 455.6 MB, free: 8.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.3945, allocations: 55.41 kB / 455.6 MB, free: 8.711 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.3946, allocations: 194.9 kB / 455.8 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.3947, allocations: 29.7 kB / 455.9 MB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.3948, allocations: 164.9 kB / 456 MB, free: 8.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.3948, allocations: 45.48 kB / 456.1 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.265e-05/0.3948, allocations: 7.312 kB / 456.1 MB, free: 8.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3949, allocations: 333.7 kB / 456.4 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.3951, allocations: 62.05 kB / 456.4 MB, free: 7.961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.3952, allocations: 79.27 kB / 456.5 MB, free: 7.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.3953, allocations: 65.97 kB / 456.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3953, allocations: 0 / 456.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002282/0.3976, allocations: 0.541 MB / 457.1 MB, free: 7.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3976, allocations: 8 kB / 457.1 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3977, allocations: 0 / 457.1 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003144/0.398, allocations: 136.3 kB / 457.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.3982, allocations: 39.91 kB / 457.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00462/0.4028, allocations: 2.186 MB / 459.5 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.4031, allocations: 43.94 kB / 459.5 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.4031, allocations: 8 kB / 459.5 MB, free: 4.949 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 8.374e-05/0.4032, allocations: 109 kB / 459.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.908e-05/0.4032, allocations: 23.84 kB / 459.7 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.4033, allocations: 29.64 kB / 459.7 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4033, allocations: 0 / 459.7 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.4033, allocations: 4 kB / 459.7 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.4033, allocations: 0 / 459.7 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003623/0.4037, allocations: 329.2 kB / 460 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4037, allocations: 0 / 460 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.4039, allocations: 39.88 kB / 460.1 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.4042, allocations: 136.8 kB / 460.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.4042, allocations: 3.984 kB / 460.2 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004428/0.4086, allocations: 2.169 MB / 462.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4086, allocations: 0 / 462.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.4111, allocations: 0.7186 MB / 463.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.424e-05/0.4112, allocations: 96.89 kB / 463.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.4113, allocations: 4.062 kB / 463.2 MB, free: 1.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.4116, allocations: 43.97 kB / 463.2 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.4116, allocations: 7.984 kB / 463.2 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.4117, allocations: 15.94 kB / 463.3 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001654/0.4118, allocations: 145.9 kB / 463.4 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4118, allocations: 4 kB / 463.4 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004526/0.4123, allocations: 79.84 kB / 463.5 MB, free: 0.7695 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.002711/0.415, allocations: 1.256 MB / 464.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.4162, allocations: 390.5 kB / 465.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4163, allocations: 4 kB / 465.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008896/0.4171, allocations: 310.4 kB / 465.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.4174, allocations: 33.48 kB / 465.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.4185, allocations: 425.6 kB / 465.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.4187, allocations: 0.7519 MB / 466.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.562e-05/0.4188, allocations: 13.55 kB / 466.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.122e-05/0.4189, allocations: 67.41 kB / 466.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4189, allocations: 0 / 466.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.4384, allocations: 6.508 MB / 473.2 MB, free: 6.918 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.4386, allocations: 188.2 kB / 473.4 MB, free: 6.695 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.131, allocations: 4 kB / 473.4 MB, free: 6.691 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