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.0007932/0.0007932, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003167/0.003167, allocations: 145.3 kB / 24.68 MB, free: 9.422 MB / 18.57 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 0.8082/0.8082, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.052e-06/1.052e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.447e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002208/0.002222, allocations: 2.527 MB / 322.2 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007111/0.002934, allocations: 0.6505 MB / 322.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.156e-05/0.003025, allocations: 11.94 kB / 322.9 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.003134, allocations: 35.64 kB / 322.9 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.208e-05/0.003226, allocations: 91.08 kB / 323 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.003449, allocations: 95.8 kB / 323.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.003691, allocations: 374.3 kB / 323.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.003826, allocations: 64.83 kB / 323.5 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.004003, allocations: 203.6 kB / 323.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.004116, allocations: 123.7 kB / 323.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.004155, allocations: 32 kB / 323.9 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.667e-05/0.004182, allocations: 28 kB / 323.9 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.004223, allocations: 71.78 kB / 324 MB, free: 1.531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.778e-05/0.00429, allocations: 107.7 kB / 324.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.004542, allocations: 362.9 kB / 324.4 MB, free: 1.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004544, allocations: 0 / 324.4 MB, free: 1.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.004545, allocations: 0 / 324.4 MB, free: 1.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.004549, allocations: 0 / 324.4 MB, free: 1.07 MB / 282.7 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.00077/0.005319, allocations: 0.5794 MB / 325 MB, free: 472 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.005352, allocations: 12.86 kB / 325 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.005401, allocations: 32.75 kB / 325.1 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.005623, allocations: 198.3 kB / 325.3 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.005635, allocations: 12.88 kB / 325.3 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.005667, allocations: 20.38 kB / 325.3 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.00606, allocations: 351.6 kB / 325.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.00607, allocations: 192 / 325.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.00609, allocations: 12.36 kB / 325.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.006096, allocations: 7.938 kB / 325.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003934/0.00649, allocations: 269.8 kB / 325.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009042/0.007394, allocations: 0.9192 MB / 326.8 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.00825, allocations: 426.3 kB / 327.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.008453, allocations: 132.8 kB / 327.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.008469, allocations: 4 kB / 327.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.008486, allocations: 38.5 kB / 327.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.008487, allocations: 3.938 kB / 327.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002114/0.0106, allocations: 0.9459 MB / 328.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.01063, allocations: 55.41 kB / 328.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.01076, allocations: 203.1 kB / 328.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.01078, allocations: 25.7 kB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.01085, allocations: 172.3 kB / 328.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.01088, allocations: 47.55 kB / 328.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.01093, allocations: 45.62 kB / 328.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.01101, allocations: 334.8 kB / 329.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.01117, allocations: 99.94 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.01135, allocations: 125.6 kB / 329.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.01167, allocations: 224.3 kB / 329.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01168, allocations: 0 / 329.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001246/0.01292, allocations: 0.6345 MB / 330.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.01293, allocations: 12 kB / 330.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.01294, allocations: 0 / 330.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.01333, allocations: 220.7 kB / 330.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.143e-05/0.01341, allocations: 31.92 kB / 330.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003207/0.01662, allocations: 2.593 MB / 333.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.01672, allocations: 35.91 kB / 333.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.01674, allocations: 11.98 kB / 333.2 MB, free: 7.957 MB / 298.7 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 9.48e-05/0.01683, allocations: 129.8 kB / 333.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.01686, allocations: 15.91 kB / 333.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.01689, allocations: 33.45 kB / 333.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.01689, allocations: 0 / 333.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.01689, allocations: 4 kB / 333.4 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.01689, allocations: 0 / 333.4 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.01708, allocations: 221.1 kB / 333.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.01708, allocations: 0 / 333.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.351e-05/0.01715, allocations: 27.98 kB / 333.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.01747, allocations: 228.6 kB / 333.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.01748, allocations: 3.984 kB / 333.9 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.02051, allocations: 2.586 MB / 336.4 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.02051, allocations: 0 / 336.4 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.02195, allocations: 0.8434 MB / 337.3 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.636e-05/0.02197, allocations: 15.84 kB / 337.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.02198, allocations: 0 / 337.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.02212, allocations: 43.97 kB / 337.3 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.02215, allocations: 11.97 kB / 337.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.02216, allocations: 4 kB / 337.4 MB, free: 3.637 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.321e-05/0.02225, allocations: 152.4 kB / 337.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02225, allocations: 0 / 337.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.02249, allocations: 75.89 kB / 337.6 MB, free: 3.414 MB / 298.7 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 7.465e-05/0.02257, allocations: 107.2 kB / 337.7 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009141/0.02348, allocations: 448.8 kB / 338.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.02348, allocations: 0 / 338.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004402/0.02392, allocations: 325.3 kB / 338.4 MB, free: 2.523 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.02413, allocations: 31.97 kB / 338.5 MB, free: 2.492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.02487, allocations: 0.5431 MB / 339 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.271e-05/0.02495, allocations: 141.7 kB / 339.2 MB, free: 1.762 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.02498, allocations: 16.5 kB / 339.2 MB, free: 1.742 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02498, allocations: 0 / 339.2 MB, free: 1.742 MB / 298.7 MB Notification: Performance of Templates: time 0.003722/0.0287, allocations: 4.085 MB / 343.3 MB, free: 13.66 MB / 314.7 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.252276862040162]