Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009683/0.0009684, allocations: 93.08 kB / 16.65 MB, free: 6.535 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.0008641/0.0008642, allocations: 177.8 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.0003189, allocations: 11.92 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1455, allocations: 50.42 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003122/0.1487, allocations: 2.374 MB / 354.2 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.1498, allocations: 0.6584 MB / 354.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1499, allocations: 4 kB / 354.9 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.1501, allocations: 31.75 kB / 354.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.1502, allocations: 71.41 kB / 355 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.1505, allocations: 91.83 kB / 355.1 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.1508, allocations: 342.5 kB / 355.4 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.151, allocations: 73.14 kB / 355.5 MB, free: 64 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.1513, allocations: 119.5 kB / 355.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.1515, allocations: 139.4 kB / 355.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.117e-05/0.1515, allocations: 20 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.169e-05/0.1516, allocations: 16 kB / 355.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.412e-05/0.1516, allocations: 55.75 kB / 355.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.1518, allocations: 161 kB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.1521, allocations: 315.1 kB / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1521, allocations: 4 kB / 356.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1521, allocations: 0 / 356.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1521, allocations: 0 / 356.3 MB, free: 15.24 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.001455/0.1536, allocations: 0.6082 MB / 356.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1536, allocations: 12.03 kB / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.1537, allocations: 24.66 kB / 356.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.154, allocations: 260.6 kB / 357.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.154, allocations: 16.81 kB / 357.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.977e-05/0.1541, allocations: 24.38 kB / 357.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006935/0.1548, allocations: 314.9 kB / 357.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1548, allocations: 0 / 357.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.1549, allocations: 8 kB / 357.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1549, allocations: 4 kB / 357.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007984/0.1557, allocations: 285.6 kB / 357.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.1575, allocations: 1.077 MB / 358.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/0.1595, allocations: 482.3 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/0.1599, allocations: 160.7 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.16, allocations: 4 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.16, allocations: 30.56 kB / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.16, allocations: 0 / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005156/0.1652, allocations: 1.135 MB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.1652, allocations: 59.39 kB / 360.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.1655, allocations: 216.2 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1655, allocations: 29.7 kB / 361 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1657, allocations: 156 kB / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.849e-05/0.1657, allocations: 47.36 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.1658, allocations: 21.7 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1659, allocations: 330.8 kB / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.1663, allocations: 119.9 kB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.1667, allocations: 129.6 kB / 361.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/0.1674, allocations: 248 kB / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1674, allocations: 7.938 kB / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002986/0.1704, allocations: 0.7008 MB / 362.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1704, allocations: 4 kB / 362.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.1705, allocations: 4 kB / 362.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007728/0.1712, allocations: 232.7 kB / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.1714, allocations: 31.98 kB / 363 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0068/0.1782, allocations: 2.625 MB / 365.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.1786, allocations: 31.89 kB / 365.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.1786, allocations: 11.98 kB / 365.7 MB, free: 5.418 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 (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.0001631/0.1788, allocations: 133.8 kB / 365.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.1788, allocations: 27.8 kB / 365.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.1789, allocations: 29.52 kB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1789, allocations: 0 / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.1789, allocations: 0 / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1789, allocations: 0 / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.1793, allocations: 321.4 kB / 366.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1793, allocations: 0 / 366.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.1795, allocations: 35.92 kB / 366.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006664/0.1802, allocations: 232.7 kB / 366.4 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.1802, allocations: 3.984 kB / 366.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006544/0.1868, allocations: 2.599 MB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1868, allocations: 0 / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003492/0.1903, allocations: 0.9171 MB / 369.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1904, allocations: 96.89 kB / 370 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.1905, allocations: 11.92 kB / 370 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.1908, allocations: 36.05 kB / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.1909, allocations: 11.98 kB / 370.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.1909, allocations: 7.984 kB / 370.1 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1911, allocations: 153.9 kB / 370.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1911, allocations: 0 / 370.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005044/0.1916, allocations: 79.84 kB / 370.3 MB, free: 0.5117 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 (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.0001527/0.1918, allocations: 114 kB / 370.4 MB, free: 404 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2645/0.4562, allocations: 463.5 kB / 370.9 MB, free: 25.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/0.4563, allocations: 1.281 kB / 370.9 MB, free: 25.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.4577, allocations: 359.9 kB / 371.2 MB, free: 25.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.4583, allocations: 39.06 kB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.4598, allocations: 0.6867 MB / 372 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.4601, allocations: 0.7446 MB / 372.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.4602, allocations: 11.62 kB / 372.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.4603, allocations: 16.66 kB / 372.7 MB, free: 24 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4603, allocations: 0 / 372.7 MB, free: 24 MB / 302.1 MB Notification: Performance of Templates: time 0.01182/0.4721, allocations: 4.596 MB / 377.3 MB, free: 23.78 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches