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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008589/0.0008589, allocations: 98.31 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 189.8 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005295/0.0005296, allocations: 15.28 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1035, allocations: 47.58 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002691/0.1062, allocations: 2.14 MB / 330.6 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1074, allocations: 0.6909 MB / 331.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.1075, allocations: 8 kB / 331.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.551e-05/0.1076, allocations: 31.75 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.1078, allocations: 91.72 kB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.1081, allocations: 79.83 kB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003188/0.1084, allocations: 227.5 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.1086, allocations: 73.12 kB / 331.8 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.1088, allocations: 123.6 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.109, allocations: 139.5 kB / 332 MB, free: 416 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.1091, allocations: 12 kB / 332 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.939e-05/0.1091, allocations: 16 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.59e-05/0.1092, allocations: 51.8 kB / 332.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.1093, allocations: 73.58 kB / 332.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.1095, allocations: 243.6 kB / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1095, allocations: 0 / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1095, allocations: 3.938 kB / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1095, allocations: 0 / 332.4 MB, free: 8 kB / 270.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.001453/0.111, allocations: 0.6119 MB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.1111, allocations: 8.031 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.341e-05/0.1111, allocations: 54.55 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.083e-05/0.1112, allocations: 27.72 kB / 333.1 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.1116, allocations: 259.4 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.1117, allocations: 20.39 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.1117, allocations: 16 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006476/0.1124, allocations: 302.6 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1124, allocations: 4 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1124, allocations: 8 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1124, allocations: 4 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.1132, allocations: 289.5 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.1149, allocations: 1.081 MB / 335.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.1168, allocations: 490.3 kB / 335.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1169, allocations: 4 kB / 335.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1169, allocations: 34.56 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.1169, allocations: 0 / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004899/0.1218, allocations: 1.124 MB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.1219, allocations: 51.41 kB / 336.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.1221, allocations: 213.5 kB / 337 MB, free: 11.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.1221, allocations: 33.64 kB / 337 MB, free: 11.13 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1223, allocations: 156.1 kB / 337.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.1223, allocations: 51.27 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.441e-05/0.1223, allocations: 4 kB / 337.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1225, allocations: 334.8 kB / 337.5 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.1228, allocations: 111.9 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.1232, allocations: 137.6 kB / 337.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.1236, allocations: 119.1 kB / 337.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1236, allocations: 0 / 337.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002802/0.1264, allocations: 0.6931 MB / 338.6 MB, free: 9.52 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1264, allocations: 4 kB / 338.6 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.1264, allocations: 4 kB / 338.6 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007402/0.1272, allocations: 228.7 kB / 338.8 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.1274, allocations: 39.98 kB / 338.9 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006791/0.1342, allocations: 2.689 MB / 341.5 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.1345, allocations: 35.89 kB / 341.6 MB, free: 6.387 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1345, allocations: 11.98 kB / 341.6 MB, free: 6.375 MB / 286.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.0001637/0.1347, allocations: 133.8 kB / 341.7 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.1348, allocations: 15.81 kB / 341.7 MB, free: 6.219 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.478e-05/0.1348, allocations: 29.47 kB / 341.8 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1348, allocations: 3.938 kB / 341.8 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.1348, allocations: 0 / 341.8 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1349, allocations: 0 / 341.8 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/0.1352, allocations: 333.5 kB / 342.1 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1353, allocations: 0 / 342.1 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.1354, allocations: 35.98 kB / 342.1 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006471/0.1361, allocations: 232.6 kB / 342.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.1361, allocations: 11.94 kB / 342.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006416/0.1425, allocations: 2.669 MB / 345 MB, free: 2.727 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.1426, allocations: 0 / 345 MB, free: 2.727 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/0.1458, allocations: 0.9137 MB / 346 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.491e-05/0.1459, allocations: 96.8 kB / 346 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.146, allocations: 0 / 346 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.1463, allocations: 44.03 kB / 346.1 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.253e-05/0.1464, allocations: 11.92 kB / 346.1 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.1464, allocations: 11.98 kB / 346.1 MB, free: 1.613 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.1465, allocations: 152.5 kB / 346.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1465, allocations: 0 / 346.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004742/0.147, allocations: 79.84 kB / 346.3 MB, free: 1.387 MB / 286.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.003488/0.1505, allocations: 1.448 MB / 347.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.152, allocations: 486.3 kB / 348.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1521, allocations: 0 / 348.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.1531, allocations: 346.6 kB / 348.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.1534, allocations: 40.61 kB / 348.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005241/0.1587, allocations: 2.149 MB / 350.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1591, allocations: 0.7437 MB / 351.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.517e-05/0.1591, allocations: 17.55 kB / 351.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.189e-05/0.1592, allocations: 63.42 kB / 351.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1593, allocations: 0 / 351.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.18, allocations: 6.515 MB / 358.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003249/0.1804, allocations: 224.3 kB / 358.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.025, allocations: 0 / 358.3 MB, free: 5.23 MB / 302.1 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) Environment - environmentSimulation: 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