Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008295/0.0008294, allocations: 99.97 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.589e-05/2.591e-05, allocations: 4 kB / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08739, allocations: 50.42 MB / 394.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.3756, allocations: 78.83 MB / 473.2 MB, free: 8.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.3758, allocations: 71.94 kB / 473.2 MB, free: 8.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01358/0.3894, allocations: 4.831 MB / 478.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3895, allocations: 0 / 478.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3895, allocations: 4 kB / 478.1 MB, free: 3.695 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.0008727/0.3904, allocations: 0.5264 MB / 478.6 MB, free: 3.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3904, allocations: 12.03 kB / 478.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.247e-05/0.3905, allocations: 62.47 kB / 478.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.046e-05/0.3906, allocations: 35.62 kB / 478.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.3909, allocations: 247.5 kB / 479 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.3909, allocations: 12.44 kB / 479 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.3909, allocations: 31.94 kB / 479 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.3913, allocations: 238.7 kB / 479.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3914, allocations: 0 / 479.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.3914, allocations: 19.88 kB / 479.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.3914, allocations: 4 kB / 479.3 MB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.3917, allocations: 181.7 kB / 479.4 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.3934, allocations: 1.073 MB / 480.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.3947, allocations: 338.5 kB / 480.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.3949, allocations: 100.8 kB / 480.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3949, allocations: 4 kB / 480.9 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.395, allocations: 38.45 kB / 481 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.395, allocations: 0 / 481 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002369/0.3974, allocations: 0.5177 MB / 481.5 MB, free: 60 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.3974, allocations: 59.41 kB / 481.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3976, allocations: 191.2 kB / 481.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.3977, allocations: 33.7 kB / 481.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.3977, allocations: 164 kB / 481.9 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.3978, allocations: 43.36 kB / 482 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.3978, allocations: 4 kB / 482 MB, free: 15.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3979, allocations: 330.8 kB / 482.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.3981, allocations: 56 kB / 482.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.3982, allocations: 83.27 kB / 482.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.3983, allocations: 63.97 kB / 482.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3983, allocations: 0 / 482.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002284/0.4006, allocations: 0.5499 MB / 483.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.4007, allocations: 4 kB / 483.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4007, allocations: 3.938 kB / 483.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.401, allocations: 140.8 kB / 483.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.4012, allocations: 39.92 kB / 483.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004757/0.406, allocations: 2.187 MB / 485.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.4063, allocations: 47.91 kB / 485.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.4064, allocations: 7.984 kB / 485.5 MB, free: 11.89 MB / 362.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.0001014/0.4065, allocations: 105 kB / 485.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.4065, allocations: 23.72 kB / 485.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.28e-05/0.4066, allocations: 21.66 kB / 485.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.4066, allocations: 3.938 kB / 485.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4066, allocations: 11.94 kB / 485.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4066, allocations: 0 / 485.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003617/0.407, allocations: 329.2 kB / 486 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.407, allocations: 4 kB / 486 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.4072, allocations: 35.92 kB / 486 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002545/0.4074, allocations: 132.8 kB / 486.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4075, allocations: 4 kB / 486.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004532/0.412, allocations: 2.181 MB / 488.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.412, allocations: 4 kB / 488.3 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.4146, allocations: 0.7065 MB / 489 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.4147, allocations: 92.89 kB / 489.1 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.4147, allocations: 7.984 kB / 489.1 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.415, allocations: 39.98 kB / 489.2 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.4151, allocations: 7.984 kB / 489.2 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.4151, allocations: 11.98 kB / 489.2 MB, free: 7.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001839/0.4153, allocations: 157.6 kB / 489.3 MB, free: 7.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4153, allocations: 0 / 489.3 MB, free: 7.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006007/0.416, allocations: 83.84 kB / 489.4 MB, free: 7.711 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.002682/0.4186, allocations: 1.263 MB / 490.7 MB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.4198, allocations: 383.9 kB / 491.1 MB, free: 6.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4198, allocations: 0 / 491.1 MB, free: 6.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008543/0.4207, allocations: 302.6 kB / 491.4 MB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.4209, allocations: 32.66 kB / 491.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009602/0.4219, allocations: 424.7 kB / 491.8 MB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.4222, allocations: 0.748 MB / 492.5 MB, free: 4.461 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.128e-05/0.4223, allocations: 17.55 kB / 492.6 MB, free: 4.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.4224, allocations: 63.42 kB / 492.6 MB, free: 4.383 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4224, allocations: 0 / 492.6 MB, free: 4.383 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.4417, allocations: 6.495 MB / 499.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.442, allocations: 192.7 kB / 499.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.2, allocations: 7.938 kB / 499.3 MB, free: 13.79 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat