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.001311/0.001311, allocations: 97.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 204.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00025/0.0002502, allocations: 12 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.109, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002625/0.1117, allocations: 2.186 MB / 360.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.113, allocations: 0.69 MB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.1132, allocations: 11.94 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.654e-05/0.1133, allocations: 31.81 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000297/0.1136, allocations: 91.66 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.114, allocations: 79.83 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.1145, allocations: 231.5 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.1148, allocations: 72.88 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.1153, allocations: 127.6 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.1156, allocations: 135.4 kB / 361.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.436e-05/0.1157, allocations: 16 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1158, allocations: 20 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.435e-05/0.1159, allocations: 51.8 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.116, allocations: 69.58 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.1164, allocations: 247.6 kB / 362.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1165, allocations: 0 / 362.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1165, allocations: 3.938 kB / 362.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1165, allocations: 0 / 362.2 MB, free: 9.941 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.002132/0.1186, allocations: 0.6119 MB / 362.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.412e-05/0.1187, allocations: 12.03 kB / 362.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.1189, allocations: 58.53 kB / 362.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003145/0.1192, allocations: 39.62 kB / 363 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.1197, allocations: 255.5 kB / 363.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.1198, allocations: 12.44 kB / 363.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.1199, allocations: 27.89 kB / 363.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009773/0.1208, allocations: 302.6 kB / 363.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1209, allocations: 0 / 363.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.1209, allocations: 8 kB / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.121, allocations: 4 kB / 363.5 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.1221, allocations: 293.5 kB / 363.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/0.1248, allocations: 1.069 MB / 364.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.1277, allocations: 482.2 kB / 365.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.1277, allocations: 8 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.1278, allocations: 38.52 kB / 365.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 3.446e-06/0.1278, allocations: 0 / 365.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.007832/0.1356, allocations: 1.131 MB / 366.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.1357, allocations: 51.41 kB / 366.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.1362, allocations: 224.1 kB / 366.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.1362, allocations: 25.7 kB / 366.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1364, allocations: 160.1 kB / 367 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.956e-05/0.1365, allocations: 51.27 kB / 367.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.211e-05/0.1366, allocations: 0 / 367.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1368, allocations: 330.8 kB / 367.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006692/0.1374, allocations: 115.9 kB / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.1381, allocations: 133.6 kB / 367.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.1388, allocations: 114.3 kB / 367.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.1389, allocations: 3.953 kB / 367.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00545/0.1443, allocations: 0.697 MB / 368.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.1444, allocations: 8 kB / 368.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.1444, allocations: 0 / 368.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.1458, allocations: 236.6 kB / 368.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.1461, allocations: 31.98 kB / 368.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.1583, allocations: 2.685 MB / 371.4 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/0.1588, allocations: 35.92 kB / 371.4 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.1589, allocations: 12.05 kB / 371.4 MB, free: 308 kB / 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.0002279/0.1592, allocations: 137.7 kB / 371.6 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.1593, allocations: 15.81 kB / 371.6 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.411e-05/0.1594, allocations: 25.52 kB / 371.6 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.1594, allocations: 11.89 kB / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1594, allocations: 0 / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1594, allocations: 0 / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2322/0.3916, allocations: 318.9 kB / 371.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3917, allocations: 0.75 kB / 371.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.3919, allocations: 32.17 kB / 372 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008099/0.3927, allocations: 232.8 kB / 372.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.3928, allocations: 4.875 kB / 372.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006719/0.3995, allocations: 2.678 MB / 374.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3995, allocations: 3.828 kB / 374.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/0.4032, allocations: 0.912 MB / 375.8 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.845e-05/0.4034, allocations: 96.89 kB / 375.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.4034, allocations: 2.125 kB / 375.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.4037, allocations: 41.89 kB / 375.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.145e-05/0.4038, allocations: 13.19 kB / 375.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.4038, allocations: 7.547 kB / 375.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.404, allocations: 156.8 kB / 376.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.404, allocations: 0 / 376.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.4046, allocations: 77.86 kB / 376.2 MB, free: 18.08 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.003773/0.4084, allocations: 1.458 MB / 377.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.4102, allocations: 468.9 kB / 378.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4102, allocations: 1 kB / 378.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.4113, allocations: 361.7 kB / 378.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.4117, allocations: 28.44 kB / 378.5 MB, free: 17.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005683/0.4174, allocations: 2.133 MB / 380.6 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.4176, allocations: 0.7477 MB / 381.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.4178, allocations: 20.75 kB / 381.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.164e-05/0.4179, allocations: 66 kB / 381.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4179, allocations: 0 / 381.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.438, allocations: 6.532 MB / 388 MB, free: 13.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001383/0.4382, allocations: 216.3 kB / 388.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.495, allocations: 0 / 388.2 MB, free: 13.39 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