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.001569/0.00157, allocations: 107.1 kB / 17.17 MB, free: 6.32 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.001771/0.001771, allocations: 194.9 kB / 18.08 MB, free: 5.41 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.823/1.823, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 43.94 kB / 300.6 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1235, allocations: 49.46 MB / 350.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005525/0.129, allocations: 2.725 MB / 352.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.1307, allocations: 0.6661 MB / 353.5 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003435/0.1311, allocations: 4 kB / 353.5 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.1314, allocations: 39.69 kB / 353.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003685/0.1318, allocations: 63.45 kB / 353.6 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.1322, allocations: 91.84 kB / 353.6 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.1328, allocations: 346.6 kB / 354 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.1331, allocations: 69.14 kB / 354.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003228/0.1334, allocations: 127.5 kB / 354.2 MB, free: 484 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.1337, allocations: 155.3 kB / 354.3 MB, free: 328 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.411e-05/0.1338, allocations: 20 kB / 354.4 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.1339, allocations: 20 kB / 354.4 MB, free: 288 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.436e-05/0.134, allocations: 51.8 kB / 354.4 MB, free: 236 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1341, allocations: 135.3 kB / 354.6 MB, free: 100 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.1345, allocations: 255.6 kB / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1345, allocations: 0 / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1345, allocations: 0 / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.1345, allocations: 0 / 354.8 MB, free: 15.85 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.00182/0.1363, allocations: 0.6393 MB / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1364, allocations: 8.031 kB / 355.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1365, allocations: 32.56 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.1369, allocations: 264.6 kB / 355.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.137, allocations: 12.81 kB / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.377e-05/0.137, allocations: 20.38 kB / 355.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000788/0.1378, allocations: 302.9 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.1379, allocations: 7.969 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1379, allocations: 8 kB / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1379, allocations: 4 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008605/0.1388, allocations: 269.5 kB / 356.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.1409, allocations: 1.066 MB / 357.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.1431, allocations: 438.3 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.1436, allocations: 152.8 kB / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.1436, allocations: 0 / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.1437, allocations: 42.55 kB / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.1437, allocations: 0 / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005536/0.1492, allocations: 1.018 MB / 359.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.1493, allocations: 55.41 kB / 359.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.1496, allocations: 220.1 kB / 359.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.1497, allocations: 29.7 kB / 359.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.1498, allocations: 156.1 kB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.475e-05/0.1499, allocations: 55.23 kB / 359.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.15, allocations: 33.7 kB / 359.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1502, allocations: 334.8 kB / 359.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.1506, allocations: 103.9 kB / 360 MB, free: 10.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003747/0.1509, allocations: 125.6 kB / 360.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/0.1517, allocations: 224.1 kB / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1517, allocations: 0 / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004028/0.1557, allocations: 0.6344 MB / 361 MB, free: 9.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.1558, allocations: 4 kB / 361 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1558, allocations: 4 kB / 361 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008505/0.1567, allocations: 216.7 kB / 361.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.1569, allocations: 47.84 kB / 361.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007472/0.1644, allocations: 2.497 MB / 363.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.1648, allocations: 35.86 kB / 363.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.1649, allocations: 7.984 kB / 363.8 MB, free: 6.406 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.0002053/0.1651, allocations: 129.8 kB / 363.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-05/0.1652, allocations: 31.72 kB / 364 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.41e-05/0.1653, allocations: 25.52 kB / 364 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1653, allocations: 4 kB / 364 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1653, allocations: 0 / 364 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1653, allocations: 0 / 364 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004774/0.1658, allocations: 317.5 kB / 364.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1658, allocations: 0 / 364.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.166, allocations: 31.86 kB / 364.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007801/0.1668, allocations: 220.7 kB / 364.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.1668, allocations: 7.984 kB / 364.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007301/0.1741, allocations: 2.478 MB / 367 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1742, allocations: 4.094 kB / 367 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.1778, allocations: 0.8504 MB / 367.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.178, allocations: 96.88 kB / 368 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.178, allocations: 7.938 kB / 368 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/0.1784, allocations: 32.06 kB / 368 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.1784, allocations: 16.03 kB / 368 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.1785, allocations: 4 kB / 368 MB, free: 1.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.1787, allocations: 161.8 kB / 368.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1787, allocations: 0 / 368.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005694/0.1793, allocations: 75.84 kB / 368.3 MB, free: 1.703 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.0001728/0.1795, allocations: 103.2 kB / 368.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.1813, allocations: 448.6 kB / 368.8 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1813, allocations: 3.938 kB / 368.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.1825, allocations: 334.5 kB / 369.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.183, allocations: 28.66 kB / 369.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1847, allocations: 0.6623 MB / 369.8 MB, free: 76 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1816/0.3663, allocations: 0.7402 MB / 370.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.535e-05/0.3665, allocations: 16.73 kB / 370.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of SimCode: time 3.216e-06/0.3665, allocations: 1.062 kB / 370.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of Templates: time 0.009705/0.3762, allocations: 4.071 MB / 374.7 MB, free: 25 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/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