Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001753/0.001753, allocations: 81.42 kB / 20.68 MB, free: 1.023 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.00197/0.00197, allocations: 147 kB / 23.94 MB, free: 4.168 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.459/1.459, allocations: 173.4 MB / 200.4 MB, free: 12.89 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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 1.406 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/2e-05, allocations: 6.219 kB / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003461/0.003481, allocations: 3.176 MB / 322.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.004515, allocations: 0.7236 MB / 322.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.004671, allocations: 9.719 kB / 322.8 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.004845, allocations: 66.48 kB / 322.9 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.005068, allocations: 145.2 kB / 323.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.005339, allocations: 119.9 kB / 323.2 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004244/0.005763, allocations: 0.5207 MB / 323.7 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.00594, allocations: 92.72 kB / 323.8 MB, free: 336 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.006256, allocations: 283.9 kB / 324.1 MB, free: 220 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.00648, allocations: 156.1 kB / 324.2 MB, free: 164 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.398e-05/0.006544, allocations: 40.38 kB / 324.2 MB, free: 164 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.849e-05/0.006622, allocations: 39 kB / 324.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.006692, allocations: 90.03 kB / 324.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.006859, allocations: 151 kB / 324.5 MB, free: 36 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005832/0.007442, allocations: 0.4976 MB / 325 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.007445, allocations: 0.7031 kB / 325 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.007446, allocations: 0 / 325 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.007455, allocations: 7.938 kB / 325 MB, free: 15.83 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00117/0.008625, allocations: 0.6481 MB / 325.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.008662, allocations: 8.25 kB / 325.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.863e-05/0.00876, allocations: 57.36 kB / 325.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.009166, allocations: 256 kB / 326 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.009194, allocations: 27.39 kB / 326 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.009239, allocations: 29 kB / 326 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007583/0.009998, allocations: 435.8 kB / 326.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.01001, allocations: 192 / 326.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.01005, allocations: 11.84 kB / 326.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.01007, allocations: 11.78 kB / 326.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006194/0.01069, allocations: 272 kB / 326.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.01275, allocations: 1.219 MB / 328 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004448/0.01319, allocations: 206.6 kB / 328.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.01341, allocations: 97.36 kB / 328.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.01344, allocations: 2.281 kB / 328.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.01348, allocations: 38.5 kB / 328.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.01348, allocations: 0 / 328.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001548/0.01503, allocations: 482.2 kB / 328.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.01508, allocations: 55.47 kB / 328.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.01542, allocations: 291.5 kB / 329.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.01547, allocations: 31.8 kB / 329.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.01566, allocations: 212.3 kB / 329.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.794e-05/0.01574, allocations: 82.86 kB / 329.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.01585, allocations: 54.91 kB / 329.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002428/0.01609, allocations: 339.4 kB / 329.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.01631, allocations: 80.72 kB / 329.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/0.01657, allocations: 125.5 kB / 330 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.01701, allocations: 198.1 kB / 330.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01702, allocations: 1.547 kB / 330.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008019/0.01782, allocations: 350.2 kB / 330.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.01784, allocations: 8.719 kB / 330.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.01785, allocations: 1.312 kB / 330.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004574/0.0183, allocations: 119.6 kB / 330.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.01849, allocations: 32.52 kB / 330.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004861/0.02335, allocations: 4.584 MB / 335.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.02364, allocations: 27.66 kB / 335.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.02366, allocations: 14.66 kB / 335.4 MB, free: 7.711 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002747/0.02394, allocations: 142.3 kB / 335.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.193e-05/0.02402, allocations: 32.03 kB / 335.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.135e-05/0.02409, allocations: 36.77 kB / 335.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.0241, allocations: 6.422 kB / 335.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.0241, allocations: 2.062 kB / 335.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.02411, allocations: 1.078 kB / 335.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005985/0.02471, allocations: 261.7 kB / 335.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.02471, allocations: 4 kB / 335.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.02484, allocations: 24.92 kB / 335.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003654/0.0252, allocations: 111.6 kB / 336 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.02522, allocations: 6.891 kB / 336 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004492/0.02971, allocations: 4.571 MB / 340.5 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.02972, allocations: 1.219 kB / 340.5 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008331/0.03055, allocations: 400.2 kB / 340.9 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.03071, allocations: 47.41 kB / 341 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.03075, allocations: 9.156 kB / 341 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.03099, allocations: 19.8 kB / 341 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.03111, allocations: 27.8 kB / 341 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.325e-05/0.03116, allocations: 13.78 kB / 341 MB, free: 2.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003003/0.03146, allocations: 206.6 kB / 341.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03146, allocations: 1.25 kB / 341.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.03235, allocations: 114.6 kB / 341.4 MB, free: 2.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002296/0.03258, allocations: 103.8 kB / 341.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.03375, allocations: 0.5727 MB / 342 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.03375, allocations: 0 / 342 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005722/0.03433, allocations: 470.5 kB / 342.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.03474, allocations: 43.53 kB / 342.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.03601, allocations: 0.6072 MB / 343.1 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.03624, allocations: 190.9 kB / 343.3 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.03634, allocations: 25.11 kB / 343.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.0364, allocations: 22.31 kB / 343.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.0364, allocations: 0 / 343.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of Templates: time 0.01139/0.04779, allocations: 4.907 MB / 348.3 MB, free: 13.27 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.557993095368147]