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.001182/0.001182, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001222/0.001222, allocations: 192 kB / 18.51 MB, free: 4.508 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.531/1.531, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001466/0.001466, allocations: 59.92 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1254, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005627/0.1311, allocations: 2.668 MB / 330 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1331, allocations: 0.7099 MB / 330.8 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.1336, allocations: 11.94 kB / 330.8 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.1339, allocations: 39.58 kB / 330.8 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.1343, allocations: 79.27 kB / 330.9 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.1348, allocations: 91.81 kB / 331 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.1354, allocations: 366.5 kB / 331.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.1356, allocations: 88.7 kB / 331.4 MB, free: 320 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.136, allocations: 135.5 kB / 331.6 MB, free: 184 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.1363, allocations: 155.4 kB / 331.7 MB, free: 28 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.531e-05/0.1364, allocations: 32.05 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.586e-05/0.1365, allocations: 32 kB / 331.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.1366, allocations: 75.64 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.1367, allocations: 135.4 kB / 332 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003858/0.1371, allocations: 351.1 kB / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1371, allocations: 4 kB / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1371, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1372, allocations: 0 / 332.3 MB, free: 15.41 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.001678/0.1389, allocations: 0.6315 MB / 332.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.1389, allocations: 8.031 kB / 333 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.021e-05/0.139, allocations: 58.73 kB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.998e-05/0.1391, allocations: 40.53 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.1397, allocations: 256.8 kB / 333.3 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.1397, allocations: 12.81 kB / 333.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.1398, allocations: 20.38 kB / 333.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007372/0.1405, allocations: 302.7 kB / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1406, allocations: 0 / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.1406, allocations: 8 kB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1406, allocations: 4 kB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007895/0.1414, allocations: 273.5 kB / 333.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1432, allocations: 1.069 MB / 335 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.1452, allocations: 442.3 kB / 335.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000418/0.1456, allocations: 148.8 kB / 335.6 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.1457, allocations: 4 kB / 335.6 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.1457, allocations: 30.56 kB / 335.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.1457, allocations: 0 / 335.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005053/0.1508, allocations: 1.022 MB / 336.6 MB, free: 10.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.1508, allocations: 51.41 kB / 336.7 MB, free: 10.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.1512, allocations: 224.1 kB / 336.9 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.1512, allocations: 33.7 kB / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1514, allocations: 156 kB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.1514, allocations: 47.27 kB / 337.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1516, allocations: 41.69 kB / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1517, allocations: 326.8 kB / 337.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.1521, allocations: 107.9 kB / 337.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.1525, allocations: 121.6 kB / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006931/0.1532, allocations: 232.8 kB / 337.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1532, allocations: 3.938 kB / 337.9 MB, free: 9.496 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002898/0.1561, allocations: 0.6345 MB / 338.6 MB, free: 8.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.1562, allocations: 4 kB / 338.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1562, allocations: 0 / 338.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008178/0.157, allocations: 220.7 kB / 338.8 MB, free: 8.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1572, allocations: 31.98 kB / 338.8 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007157/0.1644, allocations: 2.759 MB / 341.6 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.1647, allocations: 31.83 kB / 341.6 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1647, allocations: 7.984 kB / 341.6 MB, free: 5.66 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.1649, allocations: 145.6 kB / 341.8 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-05/0.165, allocations: 19.72 kB / 341.8 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.1651, allocations: 25.52 kB / 341.8 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1651, allocations: 4 kB / 341.8 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1651, allocations: 0 / 341.8 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1651, allocations: 0 / 341.8 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004526/0.1656, allocations: 329.4 kB / 342.1 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1656, allocations: 0 / 342.1 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.1657, allocations: 27.98 kB / 342.2 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.1664, allocations: 220.7 kB / 342.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.1664, allocations: 11.92 kB / 342.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006832/0.1733, allocations: 2.727 MB / 345.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1733, allocations: 4.031 kB / 345.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003297/0.1766, allocations: 0.836 MB / 345.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.1767, allocations: 104.9 kB / 346 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.1767, allocations: 4.062 kB / 346.1 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.1771, allocations: 35.97 kB / 346.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.336e-05/0.1771, allocations: 11.92 kB / 346.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.1771, allocations: 8 kB / 346.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.1773, allocations: 161.6 kB / 346.3 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1773, allocations: 3.938 kB / 346.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000513/0.1779, allocations: 83.84 kB / 346.4 MB, free: 0.6797 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003592/0.1815, allocations: 1.384 MB / 347.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.1831, allocations: 454.5 kB / 348.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1831, allocations: 0 / 348.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.1842, allocations: 334.4 kB / 348.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.1846, allocations: 39.72 kB / 348.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008858/0.1935, allocations: 3.347 MB / 351.9 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.194, allocations: 0.7398 MB / 352.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.664e-05/0.1941, allocations: 13.55 kB / 352.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.1942, allocations: 71.41 kB / 352.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1942, allocations: 0 / 352.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.2277, allocations: 7.211 MB / 359.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.83, allocations: 15.72 kB / 359.9 MB, free: 2.855 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00016 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches