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: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_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.00147/0.001469, allocations: 107.3 kB / 18.36 MB, free: 4.641 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.001597/0.001597, allocations: 192 kB / 19.29 MB, free: 3.715 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.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.3 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.001179/0.001179, allocations: 55.94 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004663/0.1062, allocations: 2.676 MB / 331.4 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.1077, allocations: 0.6982 MB / 332.1 MB, free: 368 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1079, allocations: 4 kB / 332.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.1081, allocations: 43.58 kB / 332.1 MB, free: 320 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.1083, allocations: 75.27 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.1087, allocations: 107.8 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000492/0.1092, allocations: 358.5 kB / 332.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.1094, allocations: 88.69 kB / 332.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.1097, allocations: 139.5 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.11, allocations: 159.4 kB / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.875e-05/0.11, allocations: 32 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.421e-05/0.1101, allocations: 32 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.93e-05/0.1102, allocations: 75.73 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002777/0.1105, allocations: 147.3 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.1109, allocations: 342.9 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.1109, allocations: 0 / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.1109, allocations: 0 / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.1109, allocations: 0 / 333.7 MB, free: 14.79 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.001679/0.1126, allocations: 0.6393 MB / 334.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1127, allocations: 8.031 kB / 334.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.1128, allocations: 32.56 kB / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.1133, allocations: 252.8 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.1134, allocations: 12.81 kB / 334.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.739e-05/0.1134, allocations: 28.31 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007031/0.1141, allocations: 302.9 kB / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1142, allocations: 0 / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.1142, allocations: 8 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1142, allocations: 4 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00088/0.1151, allocations: 269.5 kB / 335.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.117, allocations: 1.073 MB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.119, allocations: 438.3 kB / 336.7 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004567/0.1195, allocations: 144.8 kB / 336.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.1196, allocations: 7.938 kB / 336.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.1196, allocations: 30.56 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.502e-06/0.1196, allocations: 4 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005163/0.1248, allocations: 1.018 MB / 337.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.1249, allocations: 51.41 kB / 338 MB, free: 10.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.1252, allocations: 216.1 kB / 338.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1252, allocations: 29.7 kB / 338.2 MB, free: 9.992 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.1254, allocations: 164.1 kB / 338.4 MB, free: 9.828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.1254, allocations: 47.25 kB / 338.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.437e-05/0.1255, allocations: 45.69 kB / 338.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1257, allocations: 326.8 kB / 338.8 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.1261, allocations: 103.9 kB / 338.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003553/0.1264, allocations: 125.6 kB / 339 MB, free: 9.172 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006897/0.1271, allocations: 237 kB / 339.2 MB, free: 8.938 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1271, allocations: 4 kB / 339.2 MB, free: 8.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002854/0.13, allocations: 0.6305 MB / 339.9 MB, free: 8.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.13, allocations: 8 kB / 339.9 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1301, allocations: 0 / 339.9 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007701/0.1308, allocations: 216.7 kB / 340.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.131, allocations: 43.91 kB / 340.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006722/0.1378, allocations: 2.746 MB / 342.9 MB, free: 5.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.1381, allocations: 31.91 kB / 342.9 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.1381, allocations: 8 kB / 342.9 MB, free: 5.102 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.0001759/0.1383, allocations: 149.8 kB / 343.1 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.461e-05/0.1384, allocations: 19.72 kB / 343.1 MB, free: 4.926 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.1384, allocations: 17.53 kB / 343.1 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.1384, allocations: 4 kB / 343.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1384, allocations: 0 / 343.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1385, allocations: 3.984 kB / 343.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.1389, allocations: 317.4 kB / 343.4 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1389, allocations: 0 / 343.4 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.1391, allocations: 35.91 kB / 343.4 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006534/0.1397, allocations: 220.7 kB / 343.7 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.1398, allocations: 3.984 kB / 343.7 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006515/0.1463, allocations: 2.743 MB / 346.4 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1463, allocations: 0 / 346.4 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/0.1496, allocations: 0.8394 MB / 347.2 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/0.1497, allocations: 108.9 kB / 347.4 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.1498, allocations: 0 / 347.4 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.1501, allocations: 31.97 kB / 347.4 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.1501, allocations: 7.984 kB / 347.4 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.1502, allocations: 7.984 kB / 347.4 MB, free: 376 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.1503, allocations: 161.6 kB / 347.6 MB, free: 216 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1503, allocations: 7.938 kB / 347.6 MB, free: 208 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.1507, allocations: 75.84 kB / 347.6 MB, free: 132 kB / 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.0001329/0.1509, allocations: 111.8 kB / 347.7 MB, free: 8 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.1525, allocations: 454.3 kB / 348.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1525, allocations: 0 / 348.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.1536, allocations: 334.5 kB / 348.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.1539, allocations: 28.66 kB / 348.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.1552, allocations: 0.56 MB / 349.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.1555, allocations: 0.7359 MB / 349.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.695e-05/0.1556, allocations: 17.55 kB / 349.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.754e-05/0.1556, allocations: 15.44 kB / 349.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1556, allocations: 0 / 349.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of Templates: time 0.008045/0.1637, allocations: 4.934 MB / 354.8 MB, free: 8.871 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/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