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.0008816/0.0008816, allocations: 94.97 kB / 16.95 MB, free: 6.453 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.001004/0.001004, allocations: 186.1 kB / 17.84 MB, free: 6.004 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.741/1.741, allocations: 205.4 MB / 224 MB, free: 13.15 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.0006901/0.0006903, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1257, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00285/0.1286, allocations: 2.259 MB / 330.7 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1297, allocations: 0.683 MB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1299, allocations: 4 kB / 331.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.13, allocations: 31.75 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.1301, allocations: 67.41 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.1304, allocations: 79.89 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.1308, allocations: 318.6 kB / 331.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.1309, allocations: 65.14 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.1311, allocations: 123.6 kB / 332.1 MB, free: 360 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.1313, allocations: 135.4 kB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.1314, allocations: 16 kB / 332.2 MB, free: 208 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.941e-05/0.1314, allocations: 19.94 kB / 332.2 MB, free: 188 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.397e-05/0.1315, allocations: 55.8 kB / 332.3 MB, free: 132 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.427e-05/0.1316, allocations: 69.58 kB / 332.3 MB, free: 56 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.1319, allocations: 247.7 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1319, allocations: 0 / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1319, allocations: 0 / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.1319, allocations: 0 / 332.6 MB, free: 15.81 MB / 286.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.001329/0.1332, allocations: 0.6119 MB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.1333, allocations: 8.031 kB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.1334, allocations: 62.39 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.1334, allocations: 27.72 kB / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.1338, allocations: 251.5 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1338, allocations: 16.39 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.1338, allocations: 20 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006325/0.1345, allocations: 298.6 kB / 333.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1345, allocations: 3.938 kB / 333.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.1345, allocations: 16 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1346, allocations: 4 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007219/0.1353, allocations: 281.6 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.1369, allocations: 1.081 MB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.1387, allocations: 486.3 kB / 335.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.1391, allocations: 160.7 kB / 335.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1391, allocations: 4 kB / 335.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1392, allocations: 46.48 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.1392, allocations: 0 / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005188/0.1444, allocations: 1.124 MB / 337.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1444, allocations: 55.41 kB / 337.1 MB, free: 11.03 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.1448, allocations: 213.4 kB / 337.3 MB, free: 10.81 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.1448, allocations: 33.7 kB / 337.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.145, allocations: 156.1 kB / 337.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.1451, allocations: 51.27 kB / 337.6 MB, free: 10.56 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.08e-05/0.1451, allocations: 4 kB / 337.6 MB, free: 10.56 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1453, allocations: 334.8 kB / 337.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004976/0.1458, allocations: 115.9 kB / 338 MB, free: 10.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.1463, allocations: 129.6 kB / 338.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.1468, allocations: 112 kB / 338.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1468, allocations: 0 / 338.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003963/0.1508, allocations: 0.6957 MB / 338.9 MB, free: 9.164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.1508, allocations: 8 kB / 338.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1509, allocations: 0 / 338.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.1519, allocations: 232.7 kB / 339.2 MB, free: 8.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.1522, allocations: 39.92 kB / 339.2 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009443/0.1616, allocations: 2.611 MB / 341.8 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004366/0.1621, allocations: 39.98 kB / 341.9 MB, free: 6.102 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.1622, allocations: 7.984 kB / 341.9 MB, free: 6.094 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.0003191/0.1625, allocations: 125.8 kB / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.1626, allocations: 19.81 kB / 342 MB, free: 5.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.477e-05/0.1627, allocations: 33.47 kB / 342 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.1628, allocations: 4 kB / 342 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1628, allocations: 0 / 342 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1628, allocations: 0 / 342 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007035/0.1635, allocations: 329.2 kB / 342.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.1635, allocations: 4 kB / 342.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.1638, allocations: 27.92 kB / 342.4 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009574/0.1647, allocations: 232.8 kB / 342.6 MB, free: 5.27 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.1648, allocations: 19.88 kB / 342.6 MB, free: 5.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008997/0.1738, allocations: 2.595 MB / 345.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1738, allocations: 0 / 345.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00424/0.1781, allocations: 0.9098 MB / 346.1 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1782, allocations: 104.7 kB / 346.2 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.1783, allocations: 3.984 kB / 346.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.1788, allocations: 44.05 kB / 346.3 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.1788, allocations: 7.984 kB / 346.3 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.1789, allocations: 7.984 kB / 346.3 MB, free: 1.406 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.1791, allocations: 156.5 kB / 346.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1791, allocations: 0 / 346.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0009344/0.1801, allocations: 75.84 kB / 346.5 MB, free: 1.18 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.004962/0.1851, allocations: 1.455 MB / 348 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.1873, allocations: 479.1 kB / 348.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1873, allocations: 0 / 348.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.1889, allocations: 346.6 kB / 348.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006399/0.1895, allocations: 36.61 kB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007849/0.1974, allocations: 2.003 MB / 350.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.1979, allocations: 0.7398 MB / 351.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.1981, allocations: 17.55 kB / 351.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.1982, allocations: 67.41 kB / 351.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1982, allocations: 0 / 351.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.2284, allocations: 6.531 MB / 358.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/0.2286, allocations: 225.6 kB / 358.4 MB, free: 5.156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.382/2.61, allocations: 0 / 358.4 MB, free: 5.156 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