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.001191/0.001191, allocations: 179.8 kB / 17.01 MB, free: 5.121 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.462/1.462, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.000959/0.0009589, allocations: 88.16 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.0003141, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2927, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09794/0.3907, allocations: 77.41 MB / 453.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.391, allocations: 71.95 kB / 453.4 MB, free: 3.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0143/0.4053, allocations: 4.656 MB / 458 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.4054, allocations: 0 / 458 MB, free: 14.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.4054, allocations: 8 kB / 458 MB, free: 14.49 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.001171/0.4066, allocations: 0.565 MB / 458.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.4066, allocations: 8.031 kB / 458.6 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.039e-05/0.4067, allocations: 58.55 kB / 458.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.625e-05/0.4068, allocations: 23.72 kB / 458.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.4072, allocations: 251.5 kB / 458.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.4072, allocations: 16.44 kB / 459 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.4073, allocations: 23.92 kB / 459 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.4079, allocations: 302.6 kB / 459.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.408, allocations: 7.938 kB / 459.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.408, allocations: 4 kB / 459.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.408, allocations: 4 kB / 459.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008189/0.4089, allocations: 289.6 kB / 459.6 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.4106, allocations: 1.086 MB / 460.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.4126, allocations: 482.3 kB / 461.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.4127, allocations: 15.98 kB / 461.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.4127, allocations: 34.5 kB / 461.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.4127, allocations: 0 / 461.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.00557/0.4183, allocations: 1.147 MB / 462.3 MB, free: 9.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.4184, allocations: 55.34 kB / 462.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.4186, allocations: 192.7 kB / 462.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.4187, allocations: 33.7 kB / 462.6 MB, free: 9.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4188, allocations: 164 kB / 462.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.4188, allocations: 43.34 kB / 462.8 MB, free: 9.457 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.013e-05/0.4189, allocations: 4 kB / 462.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.419, allocations: 330.8 kB / 463.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003479/0.4193, allocations: 115.9 kB / 463.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.4197, allocations: 139.8 kB / 463.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.4201, allocations: 115.9 kB / 463.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4201, allocations: 3.938 kB / 463.5 MB, free: 8.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003207/0.4233, allocations: 0.6909 MB / 464.2 MB, free: 8.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.4234, allocations: 7.984 kB / 464.2 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4234, allocations: 0 / 464.2 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007343/0.4241, allocations: 232.7 kB / 464.4 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.4243, allocations: 39.92 kB / 464.5 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007386/0.4317, allocations: 2.693 MB / 467.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003963/0.4322, allocations: 43.91 kB / 467.2 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/0.4322, allocations: 4 kB / 467.2 MB, free: 4.895 MB / 346.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 () * Number of clocked 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.0002336/0.4325, allocations: 129.8 kB / 467.3 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.4326, allocations: 19.77 kB / 467.4 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.104e-05/0.4327, allocations: 29.52 kB / 467.4 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.4327, allocations: 4 kB / 467.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.4327, allocations: 0 / 467.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.4327, allocations: 0 / 467.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004878/0.4332, allocations: 325.3 kB / 467.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.4332, allocations: 0 / 467.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.4334, allocations: 35.91 kB / 467.7 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006638/0.434, allocations: 240.7 kB / 468 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.4341, allocations: 4 kB / 468 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006974/0.4411, allocations: 2.681 MB / 470.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4411, allocations: 0 / 470.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.4447, allocations: 0.9098 MB / 471.6 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.4449, allocations: 96.89 kB / 471.7 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.055e-05/0.4449, allocations: 8 kB / 471.7 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.4452, allocations: 35.97 kB / 471.7 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.4453, allocations: 19.98 kB / 471.7 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.4453, allocations: 3.984 kB / 471.7 MB, free: 140 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00016/0.4455, allocations: 160.4 kB / 471.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.644e-06/0.4455, allocations: 4 kB / 471.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000479/0.446, allocations: 87.69 kB / 472 MB, free: 15.89 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 () * Number of clocked 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.003772/0.4498, allocations: 1.451 MB / 473.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.4515, allocations: 0.4901 MB / 473.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4515, allocations: 0 / 473.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.4527, allocations: 366.4 kB / 474.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.4531, allocations: 35.12 kB / 474.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005697/0.4588, allocations: 2.135 MB / 476.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.4592, allocations: 0.7479 MB / 477.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.815e-05/0.4593, allocations: 17.53 kB / 477.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.586e-05/0.4594, allocations: 67.41 kB / 477.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of SimCode: time 6.32e-07/0.4594, allocations: 0 / 477.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.4831, allocations: 6.552 MB / 483.8 MB, free: 3.93 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002416/0.4834, allocations: 209.6 kB / 484 MB, free: 3.695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.411, allocations: 0 / 484 MB, free: 3.695 MB / 362.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