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.001444/0.001444, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00147/0.00147, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.577/1.577, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001841/0.001841, allocations: 51.92 kB / 373.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1135, allocations: 53.33 MB / 426.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004094/0.1176, allocations: 2.731 MB / 429.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.1189, allocations: 0.7245 MB / 430.3 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.119, allocations: 4 kB / 430.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.1192, allocations: 39.58 kB / 430.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.1194, allocations: 79.27 kB / 430.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.1197, allocations: 115.7 kB / 430.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.1201, allocations: 358.5 kB / 430.8 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1203, allocations: 72.7 kB / 430.9 MB, free: 236 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.1206, allocations: 139.5 kB / 431.1 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2361/0.3567, allocations: 161.5 kB / 431.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.3569, allocations: 31.5 kB / 431.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.357, allocations: 34.19 kB / 431.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.44e-05/0.3571, allocations: 67.02 kB / 431.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.3572, allocations: 150.6 kB / 431.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000451/0.3577, allocations: 353.8 kB / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3577, allocations: 0 / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3577, allocations: 1.188 kB / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3577, allocations: 3.938 kB / 431.8 MB, free: 8.273 MB / 350.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.00146/0.3592, allocations: 0.6472 MB / 432.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3592, allocations: 9.25 kB / 432.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.3594, allocations: 40.03 kB / 432.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.3597, allocations: 264.8 kB / 432.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.3598, allocations: 16.56 kB / 432.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.3598, allocations: 17.09 kB / 432.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006762/0.3605, allocations: 301.8 kB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3605, allocations: 3.938 kB / 433.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.3605, allocations: 11.28 kB / 433.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.3605, allocations: 8.906 kB / 433.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000774/0.3613, allocations: 269.8 kB / 433.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.3629, allocations: 1.066 MB / 434.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.3649, allocations: 429.5 kB / 434.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004124/0.3653, allocations: 135 kB / 435 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.3654, allocations: 3.266 kB / 435 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.3654, allocations: 39.64 kB / 435.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.824e-06/0.3654, allocations: 1.688 kB / 435.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005306/0.3707, allocations: 1.019 MB / 436.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.3707, allocations: 59.91 kB / 436.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.3709, allocations: 222 kB / 436.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.371, allocations: 30.08 kB / 436.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.371, allocations: 164.4 kB / 436.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.3711, allocations: 45.62 kB / 436.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.3712, allocations: 42.66 kB / 436.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.3712, allocations: 329.5 kB / 437 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/0.3716, allocations: 105.4 kB / 437.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.372, allocations: 130.4 kB / 437.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.3727, allocations: 228.3 kB / 437.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3727, allocations: 1.281 kB / 437.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003095/0.3758, allocations: 0.6311 MB / 438 MB, free: 5.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3758, allocations: 5.594 kB / 438.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3758, allocations: 4 kB / 438.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008164/0.3766, allocations: 216.8 kB / 438.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.3768, allocations: 35.52 kB / 438.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/0.3843, allocations: 2.741 MB / 441 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/0.3847, allocations: 41.86 kB / 441.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.3848, allocations: 6.328 kB / 441.1 MB, free: 4.332 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.0001697/0.3849, allocations: 134.5 kB / 441.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.385, allocations: 19.86 kB / 441.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.3851, allocations: 25.42 kB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3851, allocations: 1.094 kB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3851, allocations: 4 kB / 441.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3851, allocations: 3.719 kB / 441.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.3856, allocations: 329.9 kB / 441.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3856, allocations: 1.312 kB / 441.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.3857, allocations: 31.56 kB / 441.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007897/0.3865, allocations: 219.1 kB / 441.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.3866, allocations: 8.969 kB / 441.9 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006981/0.3935, allocations: 2.733 MB / 444.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3935, allocations: 5.594 kB / 444.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.397, allocations: 0.8404 MB / 445.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.3971, allocations: 98.48 kB / 445.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.3971, allocations: 7.531 kB / 445.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.3974, allocations: 34.03 kB / 445.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.3975, allocations: 10.52 kB / 445.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.3975, allocations: 4.078 kB / 445.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.3977, allocations: 160.6 kB / 445.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3977, allocations: 5.219 kB / 445.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005608/0.3982, allocations: 77.61 kB / 445.8 MB, free: 1.547 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.0001531/0.3984, allocations: 107.7 kB / 445.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.4002, allocations: 444.7 kB / 446.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4002, allocations: 0 / 446.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.4013, allocations: 323.1 kB / 446.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.4017, allocations: 38.45 kB / 446.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.4031, allocations: 0.5674 MB / 447.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.4033, allocations: 0.7449 MB / 448 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.432e-05/0.4034, allocations: 16.28 kB / 448 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.4035, allocations: 19.28 kB / 448.1 MB, free: 92 kB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4035, allocations: 0 / 448.1 MB, free: 92 kB / 350.1 MB Notification: Performance of Templates: time 0.01216/0.4156, allocations: 5.003 MB / 453.1 MB, free: 14.81 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/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: 5.045274939388037]