Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001086, allocations: 96.75 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 192.9 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.575/1.575, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.0002749, allocations: 8 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.139, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002929/0.142, allocations: 2.311 MB / 360.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.1433, allocations: 0.6821 MB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1434, allocations: 7.938 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1436, allocations: 27.77 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1437, allocations: 63.47 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.1441, allocations: 75.83 kB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.1445, allocations: 322.6 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.1447, allocations: 76.86 kB / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.145, allocations: 127.6 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.1452, allocations: 131.5 kB / 362.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.1452, allocations: 16 kB / 362.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.436e-05/0.1453, allocations: 27.94 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.078e-05/0.1453, allocations: 47.8 kB / 362.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.1454, allocations: 69.58 kB / 362.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002664/0.1457, allocations: 247.5 kB / 362.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.1457, allocations: 4 kB / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1457, allocations: 4 kB / 362.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1457, allocations: 0 / 362.5 MB, free: 9.52 MB / 302.1 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.001414/0.1472, allocations: 0.6119 MB / 363.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.1472, allocations: 11.97 kB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.523e-05/0.1473, allocations: 58.53 kB / 363.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.1475, allocations: 35.62 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.1478, allocations: 251.6 kB / 363.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.1478, allocations: 20.38 kB / 363.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.1479, allocations: 23.95 kB / 363.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006434/0.1485, allocations: 302.6 kB / 363.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1485, allocations: 0 / 363.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.1486, allocations: 8 kB / 363.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1486, allocations: 8 kB / 363.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000749/0.1493, allocations: 289.5 kB / 364.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.151, allocations: 1.069 MB / 365.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.1528, allocations: 486.2 kB / 365.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.1532, allocations: 160.7 kB / 365.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.1533, allocations: 4 kB / 365.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.1533, allocations: 38.52 kB / 365.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.793e-06/0.1533, allocations: 0 / 365.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004604/0.1579, allocations: 1.128 MB / 367 MB, free: 4.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.158, allocations: 55.41 kB / 367 MB, free: 4.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.1583, allocations: 216.1 kB / 367.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.1583, allocations: 29.64 kB / 367.3 MB, free: 4.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1584, allocations: 164.1 kB / 367.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.84e-05/0.1585, allocations: 47.27 kB / 367.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.1585, allocations: 4 kB / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1587, allocations: 330.8 kB / 367.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.159, allocations: 111.9 kB / 367.9 MB, free: 3.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.1594, allocations: 133.6 kB / 368 MB, free: 3.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.1597, allocations: 122.2 kB / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.1597, allocations: 7.938 kB / 368.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002697/0.1624, allocations: 0.6931 MB / 368.9 MB, free: 2.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1625, allocations: 4 kB / 368.9 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1625, allocations: 4 kB / 368.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007189/0.1632, allocations: 232.7 kB / 369.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1634, allocations: 31.97 kB / 369.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2756/0.439, allocations: 2.602 MB / 371.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.4394, allocations: 42.14 kB / 371.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.4394, allocations: 6.844 kB / 371.8 MB, free: 18.68 MB / 302.1 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.0001791/0.4396, allocations: 132.2 kB / 371.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-05/0.4397, allocations: 25.77 kB / 371.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.124e-05/0.4398, allocations: 25.72 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.4398, allocations: 1.062 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4398, allocations: 0.75 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4398, allocations: 5.594 kB / 372 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.4403, allocations: 320.5 kB / 372.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.4403, allocations: 1.438 kB / 372.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.4404, allocations: 30.88 kB / 372.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007184/0.4412, allocations: 234.3 kB / 372.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.4412, allocations: 6.719 kB / 372.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006068/0.4473, allocations: 2.602 MB / 375.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4473, allocations: 1.969 kB / 375.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.4507, allocations: 0.9131 MB / 376.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.559e-05/0.4508, allocations: 95.17 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/0.4508, allocations: 13.02 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.4511, allocations: 37.64 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.4512, allocations: 9.891 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.4512, allocations: 6.844 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.4514, allocations: 160.4 kB / 376.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4514, allocations: 0 / 376.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005085/0.4519, allocations: 79.02 kB / 376.5 MB, free: 16.71 MB / 302.1 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.003551/0.4555, allocations: 1.454 MB / 377.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.4571, allocations: 478.3 kB / 378.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4571, allocations: 0 / 378.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.4582, allocations: 357.2 kB / 378.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.4586, allocations: 35.75 kB / 378.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005346/0.464, allocations: 1.98 MB / 380.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.4643, allocations: 0.7445 MB / 381.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.4644, allocations: 12.97 kB / 381.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.4645, allocations: 70.27 kB / 381.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4645, allocations: 0 / 381.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.4847, allocations: 6.548 MB / 388.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/0.4849, allocations: 221.1 kB / 388.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.575, allocations: 0 / 388.3 MB, free: 12.34 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat