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.001561/0.001561, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.405/1.405, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008641/0.0008642, allocations: 101.9 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003405, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3031, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.408, allocations: 78.91 MB / 480.5 MB, free: 1.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.4084, allocations: 67.97 kB / 480.6 MB, free: 1.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01421/0.4226, allocations: 4.828 MB / 485.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4226, allocations: 0 / 485.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.4227, allocations: 4 kB / 485.4 MB, free: 12.65 MB / 362.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.001041/0.4237, allocations: 0.5648 MB / 485.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4238, allocations: 8.031 kB / 486 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.4238, allocations: 58.48 kB / 486 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.4239, allocations: 27.72 kB / 486 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.4242, allocations: 251.5 kB / 486.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.4243, allocations: 20.44 kB / 486.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.4243, allocations: 23.95 kB / 486.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000655/0.425, allocations: 302.6 kB / 486.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.425, allocations: 0 / 486.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.425, allocations: 15.94 kB / 486.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.4251, allocations: 4 kB / 486.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007842/0.4259, allocations: 281.6 kB / 486.9 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.4276, allocations: 1.081 MB / 488 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/0.4296, allocations: 486.3 kB / 488.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.4296, allocations: 0 / 488.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.4297, allocations: 50.39 kB / 488.5 MB, free: 9.297 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 9.31e-07/0.4297, allocations: 0 / 488.5 MB, free: 9.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.005663/0.4353, allocations: 1.144 MB / 489.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.4354, allocations: 51.66 kB / 489.7 MB, free: 8.062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.4356, allocations: 191.4 kB / 489.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.4357, allocations: 25.7 kB / 489.9 MB, free: 7.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.4358, allocations: 160 kB / 490.1 MB, free: 7.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.854e-05/0.4358, allocations: 55.28 kB / 490.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.4359, allocations: 8 kB / 490.1 MB, free: 7.613 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.436, allocations: 326.8 kB / 490.5 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.4364, allocations: 115.9 kB / 490.6 MB, free: 7.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.4368, allocations: 132.5 kB / 490.7 MB, free: 7.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.4371, allocations: 115.9 kB / 490.8 MB, free: 6.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4372, allocations: 4 kB / 490.8 MB, free: 6.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00324/0.4404, allocations: 0.6969 MB / 491.5 MB, free: 6.215 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.4404, allocations: 8 kB / 491.5 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4405, allocations: 0 / 491.5 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.4412, allocations: 236.6 kB / 491.8 MB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.4414, allocations: 39.91 kB / 491.8 MB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007372/0.4488, allocations: 2.696 MB / 494.5 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.4492, allocations: 39.92 kB / 494.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.4492, allocations: 11.98 kB / 494.5 MB, free: 3.051 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 () * 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.0002147/0.4495, allocations: 125.8 kB / 494.7 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.4495, allocations: 19.81 kB / 494.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.299e-05/0.4496, allocations: 21.52 kB / 494.7 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4496, allocations: 0 / 494.7 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4496, allocations: 7.953 kB / 494.7 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4496, allocations: 4 kB / 494.7 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.4501, allocations: 329.3 kB / 495 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4501, allocations: 0 / 495 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.4503, allocations: 35.92 kB / 495.1 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006463/0.4509, allocations: 236.6 kB / 495.3 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.451, allocations: 7.984 kB / 495.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006924/0.4579, allocations: 2.681 MB / 498 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4579, allocations: 0 / 498 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003465/0.4614, allocations: 0.9176 MB / 498.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.4615, allocations: 92.89 kB / 499 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.4616, allocations: 4.062 kB / 499 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.4619, allocations: 43.97 kB / 499.1 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.462, allocations: 11.98 kB / 499.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.462, allocations: 7.984 kB / 499.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000167/0.4622, allocations: 157.6 kB / 499.2 MB, free: 14.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4622, allocations: 4 kB / 499.2 MB, free: 14.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004777/0.4627, allocations: 87.75 kB / 499.3 MB, free: 14.04 MB / 378.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.003903/0.4666, allocations: 1.455 MB / 0.489 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.4683, allocations: 488.8 kB / 0.4895 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4683, allocations: 0 / 0.4895 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.4695, allocations: 370.4 kB / 0.4899 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.4699, allocations: 39.52 kB / 0.4899 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005712/0.4756, allocations: 2.13 MB / 0.492 GB, free: 9.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.476, allocations: 0.7479 MB / 0.4927 GB, free: 8.703 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.445e-05/0.4761, allocations: 21.53 kB / 0.4927 GB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.4762, allocations: 67.41 kB / 0.4928 GB, free: 8.617 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.4762, allocations: 0 / 0.4928 GB, free: 8.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.4967, allocations: 6.534 MB / 0.4992 GB, free: 2.273 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.497, allocations: 219.3 kB / 0.4994 GB, free: 2.031 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.44, allocations: 0 / 0.4994 GB, free: 2.031 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