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.001515/0.001515, allocations: 101.9 kB / 16.5 MB, free: 6.688 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.001491/0.001491, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.474/1.474, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 48.3 kB / 299.9 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1046, allocations: 49.45 MB / 349.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003756/0.1084, allocations: 2.737 MB / 352.1 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009861/0.1094, allocations: 0.67 MB / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.1096, allocations: 4 kB / 352.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1097, allocations: 31.77 kB / 352.8 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.1099, allocations: 63.41 kB / 352.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.1101, allocations: 91.89 kB / 353 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.1105, allocations: 342.5 kB / 353.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.1107, allocations: 81.11 kB / 353.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.1109, allocations: 127.5 kB / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.1111, allocations: 151.4 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.1111, allocations: 16 kB / 353.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.75e-05/0.1112, allocations: 23.94 kB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.745e-05/0.1112, allocations: 55.75 kB / 353.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.1114, allocations: 143.3 kB / 353.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.1117, allocations: 323.1 kB / 354.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1117, allocations: 4 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1117, allocations: 0 / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1117, allocations: 0 / 354.2 MB, free: 15.98 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.001538/0.1133, allocations: 0.6315 MB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1133, allocations: 8.031 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.977e-05/0.1134, allocations: 36.56 kB / 354.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.1137, allocations: 260.7 kB / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1137, allocations: 16.75 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.1138, allocations: 20.38 kB / 355.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000655/0.1145, allocations: 302.9 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.1145, allocations: 0 / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.1145, allocations: 12 kB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1145, allocations: 4 kB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007681/0.1153, allocations: 269.5 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.117, allocations: 1.062 MB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.119, allocations: 446.2 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003938/0.1194, allocations: 148.8 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.1194, allocations: 3.984 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.1194, allocations: 34.56 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.1194, allocations: 0 / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005087/0.1245, allocations: 1.021 MB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.1246, allocations: 59.41 kB / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.1248, allocations: 216.1 kB / 358.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1248, allocations: 29.7 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.125, allocations: 160.1 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.125, allocations: 51.25 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.162e-05/0.1251, allocations: 33.7 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1252, allocations: 334.8 kB / 359.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.1256, allocations: 103.9 kB / 359.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.1259, allocations: 128.3 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/0.1267, allocations: 225.5 kB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1267, allocations: 0 / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003041/0.1297, allocations: 0.6333 MB / 360.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1298, allocations: 4 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.1298, allocations: 8 kB / 360.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007637/0.1306, allocations: 212.7 kB / 360.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.1308, allocations: 39.97 kB / 360.7 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006771/0.1375, allocations: 2.497 MB / 363.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.1379, allocations: 35.91 kB / 363.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1379, allocations: 7.938 kB / 363.2 MB, free: 6.562 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.0001918/0.1381, allocations: 141.8 kB / 363.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.1382, allocations: 23.66 kB / 363.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.052e-05/0.1383, allocations: 25.52 kB / 363.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1383, allocations: 4 kB / 363.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1383, allocations: 0 / 363.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1383, allocations: 0 / 363.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.1387, allocations: 321.5 kB / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1387, allocations: 0 / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1388, allocations: 31.91 kB / 363.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00065/0.1395, allocations: 224.6 kB / 364 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.1395, allocations: 4 kB / 364 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006339/0.1459, allocations: 2.478 MB / 366.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1459, allocations: 3.938 kB / 366.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/0.1492, allocations: 0.8433 MB / 367.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/0.1493, allocations: 96.88 kB / 367.4 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.1493, allocations: 7.938 kB / 367.4 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.1496, allocations: 36.03 kB / 367.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.1497, allocations: 7.984 kB / 367.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.1497, allocations: 7.938 kB / 367.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001515/0.1499, allocations: 161.8 kB / 367.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1499, allocations: 0 / 367.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.1504, allocations: 75.84 kB / 367.7 MB, free: 1.855 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.0001496/0.1505, allocations: 103.2 kB / 367.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.1521, allocations: 446.3 kB / 368.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1521, allocations: 0 / 368.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1532, allocations: 337.5 kB / 368.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.1536, allocations: 28.66 kB / 368.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.1549, allocations: 0.6372 MB / 369.2 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1798/0.3347, allocations: 0.7442 MB / 370 MB, free: 25.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.3349, allocations: 15.38 kB / 370 MB, free: 25.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.732e-05/0.335, allocations: 15.3 kB / 370 MB, free: 25.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.733e-06/0.335, allocations: 0 / 370 MB, free: 25.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01038/0.3454, allocations: 4.639 MB / 374.6 MB, free: 25.83 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