Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.669/1.669, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 43.94 kB / 374.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1035, allocations: 53.33 MB / 427.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004464/0.108, allocations: 2.738 MB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1095, allocations: 0.7128 MB / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.1098, allocations: 11.94 kB / 431 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002048/0.11, allocations: 47.56 kB / 431 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002528/0.1102, allocations: 79.28 kB / 431.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.1107, allocations: 107.8 kB / 431.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.1112, allocations: 366.5 kB / 431.5 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.1114, allocations: 60.72 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003459/0.1117, allocations: 155.5 kB / 431.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.112, allocations: 163.3 kB / 431.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.112, allocations: 32 kB / 431.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.1121, allocations: 35.98 kB / 432 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.1122, allocations: 63.81 kB / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.1124, allocations: 143.3 kB / 432.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.1128, allocations: 358.5 kB / 432.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1128, allocations: 0 / 432.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1128, allocations: 0 / 432.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.1129, allocations: 0 / 432.5 MB, free: 15.21 MB / 366.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.001671/0.1145, allocations: 0.6546 MB / 433.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1146, allocations: 8.031 kB / 433.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.1148, allocations: 40.75 kB / 433.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.1152, allocations: 264.9 kB / 433.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.1153, allocations: 12.81 kB / 433.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.1153, allocations: 28.31 kB / 433.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007178/0.116, allocations: 294.9 kB / 433.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.116, allocations: 0 / 433.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1161, allocations: 8 kB / 433.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1161, allocations: 12 kB / 433.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008203/0.1169, allocations: 265.5 kB / 434.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.1187, allocations: 1.058 MB / 435.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.1207, allocations: 434.2 kB / 435.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004195/0.1212, allocations: 136.7 kB / 435.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1212, allocations: 8 kB / 435.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1212, allocations: 34.56 kB / 435.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.834e-06/0.1212, allocations: 0 / 435.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.005183/0.1264, allocations: 1.022 MB / 436.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.1264, allocations: 51.41 kB / 436.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.1267, allocations: 221 kB / 437 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.1267, allocations: 37.64 kB / 437.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1269, allocations: 164.2 kB / 437.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.1269, allocations: 43.64 kB / 437.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/0.127, allocations: 37.66 kB / 437.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1272, allocations: 334.8 kB / 437.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.1275, allocations: 103.9 kB / 437.7 MB, free: 9.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.1279, allocations: 125.5 kB / 437.9 MB, free: 9.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.1286, allocations: 232 kB / 438.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1287, allocations: 4 kB / 438.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003053/0.1317, allocations: 0.6345 MB / 438.7 MB, free: 8.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1317, allocations: 4 kB / 438.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1317, allocations: 0 / 438.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/0.1325, allocations: 220.7 kB / 439 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.1327, allocations: 35.91 kB / 439 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007523/0.1403, allocations: 2.746 MB / 441.7 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.1406, allocations: 47.92 kB / 441.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.1406, allocations: 4 kB / 441.8 MB, free: 5.52 MB / 366.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.0001873/0.1408, allocations: 130.3 kB / 441.9 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.1409, allocations: 15.91 kB / 441.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.235e-05/0.1409, allocations: 29.83 kB / 442 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1409, allocations: 0 / 442 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1409, allocations: 0 / 442 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1409, allocations: 0 / 442 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004738/0.1414, allocations: 329.3 kB / 442.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1414, allocations: 7.938 kB / 442.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.1416, allocations: 35.91 kB / 442.3 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007366/0.1423, allocations: 216.7 kB / 442.5 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.1424, allocations: 4 kB / 442.5 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007303/0.1497, allocations: 2.743 MB / 445.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1497, allocations: 4.062 kB / 445.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.1531, allocations: 0.8356 MB / 446.1 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.1532, allocations: 108.9 kB / 446.2 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.1533, allocations: 0 / 446.2 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.1536, allocations: 35.97 kB / 446.3 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-05/0.1537, allocations: 12.05 kB / 446.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.1537, allocations: 7.984 kB / 446.3 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.1539, allocations: 160.4 kB / 446.4 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1539, allocations: 0 / 446.4 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004975/0.1544, allocations: 79.89 kB / 446.5 MB, free: 0.543 MB / 366.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.0001799/0.1546, allocations: 99.25 kB / 446.6 MB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2137/0.3683, allocations: 445.5 kB / 447.1 MB, free: 25.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.3683, allocations: 0 / 447.1 MB, free: 25.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.3696, allocations: 321.5 kB / 447.4 MB, free: 25.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.37, allocations: 38.03 kB / 447.4 MB, free: 25.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.3714, allocations: 0.5777 MB / 448 MB, free: 25.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.3716, allocations: 0.7464 MB / 448.7 MB, free: 24.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.3717, allocations: 15.91 kB / 448.7 MB, free: 24.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3717, allocations: 0.6562 kB / 448.7 MB, free: 24.32 MB / 366.1 MB Notification: Performance of Templates: time 0.007587/0.3793, allocations: 4.154 MB / 452.9 MB, free: 24.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.586628954013577]