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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 119.5 kB / 18.41 MB, free: 4.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 184.3 kB / 21.34 MB, free: 1.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 247 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 47.92 kB / 358.7 MB, free: 8.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09352, allocations: 49.43 MB / 408.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004083/0.09764, allocations: 2.701 MB / 410.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.09899, allocations: 0.67 MB / 411.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.09915, allocations: 4 kB / 411.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.09935, allocations: 43.56 kB / 411.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.09952, allocations: 79.28 kB / 411.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.09985, allocations: 99.78 kB / 411.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.1003, allocations: 358.6 kB / 412 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.1005, allocations: 88.64 kB / 412.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.1007, allocations: 143.5 kB / 412.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.1009, allocations: 159.4 kB / 412.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.101, allocations: 32 kB / 412.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.397e-05/0.1011, allocations: 32 kB / 412.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-05/0.1012, allocations: 63.81 kB / 412.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.1013, allocations: 151.2 kB / 412.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.1017, allocations: 342.6 kB / 413 MB, free: 1.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1018, allocations: 4 kB / 413 MB, free: 1.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1018, allocations: 3.938 kB / 413 MB, free: 1.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1018, allocations: 4 kB / 413 MB, free: 1.867 MB / 334.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.001522/0.1033, allocations: 0.6429 MB / 413.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1033, allocations: 12.03 kB / 413.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.1034, allocations: 28.75 kB / 413.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.1039, allocations: 268.8 kB / 414 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.1039, allocations: 16.81 kB / 414 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.1039, allocations: 20.38 kB / 414 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/0.1046, allocations: 298.9 kB / 414.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1047, allocations: 0 / 414.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.1047, allocations: 12 kB / 414.3 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1047, allocations: 8 kB / 414.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008079/0.1055, allocations: 265.6 kB / 414.6 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.1073, allocations: 1.066 MB / 415.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.1092, allocations: 438.3 kB / 416.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004297/0.1097, allocations: 152.8 kB / 416.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.1097, allocations: 0 / 416.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.1098, allocations: 34.56 kB / 416.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.1098, allocations: 0 / 416.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004989/0.1148, allocations: 1.03 MB / 417.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1148, allocations: 55.41 kB / 417.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.1151, allocations: 216.2 kB / 417.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.1152, allocations: 29.7 kB / 417.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1153, allocations: 160.2 kB / 417.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.1154, allocations: 47.59 kB / 417.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/0.1155, allocations: 41.69 kB / 417.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1156, allocations: 326.8 kB / 418.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.116, allocations: 107.9 kB / 418.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.1164, allocations: 125.6 kB / 418.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006968/0.1171, allocations: 231.8 kB / 418.6 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1171, allocations: 0 / 418.6 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002911/0.12, allocations: 0.6288 MB / 419.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.12, allocations: 4 kB / 419.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.12, allocations: 0 / 419.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008102/0.1209, allocations: 224.6 kB / 419.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.121, allocations: 35.98 kB / 419.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006936/0.128, allocations: 2.751 MB / 422.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.1283, allocations: 39.92 kB / 422.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.1283, allocations: 7.984 kB / 422.3 MB, free: 8.168 MB / 350.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.0001663/0.1285, allocations: 138.2 kB / 422.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.1286, allocations: 19.91 kB / 422.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.313e-05/0.1286, allocations: 17.53 kB / 422.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.1286, allocations: 3.984 kB / 422.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1286, allocations: 0 / 422.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1286, allocations: 0 / 422.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/0.1291, allocations: 345.1 kB / 422.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1291, allocations: 0 / 422.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1292, allocations: 27.98 kB / 422.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007086/0.1299, allocations: 220.7 kB / 423.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.13, allocations: 3.984 kB / 423.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006996/0.137, allocations: 2.739 MB / 425.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.137, allocations: 0 / 425.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.1404, allocations: 0.8434 MB / 426.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.926e-05/0.1405, allocations: 100.9 kB / 426.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.1406, allocations: 0 / 426.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.1409, allocations: 35.97 kB / 426.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.1409, allocations: 12.05 kB / 426.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.141, allocations: 7.984 kB / 426.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1412, allocations: 153.9 kB / 426.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1412, allocations: 0 / 426.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004872/0.1417, allocations: 79.89 kB / 427 MB, free: 3.199 MB / 350.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.0001681/0.1418, allocations: 110 kB / 427.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.1435, allocations: 450.3 kB / 427.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1435, allocations: 0 / 427.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.1446, allocations: 330.5 kB / 427.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.145, allocations: 30.2 kB / 427.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1464, allocations: 0.5847 MB / 428.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.1468, allocations: 0.7476 MB / 429.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.453e-05/0.1469, allocations: 19.42 kB / 429.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1469, allocations: 0 / 429.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of Templates: time 0.1762/0.3231, allocations: 4.085 MB / 433.4 MB, free: 22.4 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.443948974949308]