Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 85.91 kB / 21.43 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 160.3 kB / 24.82 MB, free: 8.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.055/1.055, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.498e-05, allocations: 5.266 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003488/0.003513, allocations: 3.458 MB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.00501, allocations: 0.8256 MB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/0.005229, allocations: 11.94 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.005402, allocations: 67.3 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.005647, allocations: 138.7 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.006035, allocations: 143.7 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006404/0.006675, allocations: 0.5324 MB / 278.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.006864, allocations: 107.5 kB / 278.6 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.007253, allocations: 291.4 kB / 278.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.007431, allocations: 155.5 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.591e-05/0.007477, allocations: 40 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.782e-05/0.007554, allocations: 43.98 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.026e-05/0.007605, allocations: 95.59 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.007709, allocations: 155.6 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.008029, allocations: 342.8 kB / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.008033, allocations: 0 / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008034, allocations: 0 / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.008039, allocations: 0 / 279.7 MB, free: 10.8 MB / 266.7 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.0007033/0.008742, allocations: 0.7565 MB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.008776, allocations: 16.02 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.008967, allocations: 96.59 kB / 280.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.009236, allocations: 268.4 kB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.009254, allocations: 25.03 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.998e-05/0.009284, allocations: 36.36 kB / 280.9 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.009604, allocations: 364.3 kB / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.009613, allocations: 192 / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.009633, allocations: 20.31 kB / 281.3 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.009641, allocations: 11.94 kB / 281.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.009769, allocations: 104.4 kB / 281.4 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.01084, allocations: 1.339 MB / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.01102, allocations: 155 kB / 282.9 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.673e-05/0.01107, allocations: 59.52 kB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.01109, allocations: 12 kB / 283 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.01111, allocations: 37.39 kB / 283 MB, free: 7.309 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.122e-06/0.01111, allocations: 0 / 283 MB, free: 7.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006321/0.01174, allocations: 341.9 kB / 283.3 MB, free: 6.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.34e-05/0.01177, allocations: 59.41 kB / 283.4 MB, free: 6.887 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.01194, allocations: 330.1 kB / 283.7 MB, free: 6.547 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.01196, allocations: 29.7 kB / 283.7 MB, free: 6.512 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.01208, allocations: 267.1 kB / 284 MB, free: 6.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.01211, allocations: 79.27 kB / 284.1 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/0.01218, allocations: 59.33 kB / 284.1 MB, free: 6.102 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.01231, allocations: 0.5078 MB / 284.6 MB, free: 5.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.293e-05/0.01235, allocations: 31.97 kB / 284.7 MB, free: 5.551 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.018e-05/0.01242, allocations: 82.38 kB / 284.7 MB, free: 5.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.01254, allocations: 118.4 kB / 284.9 MB, free: 5.312 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01254, allocations: 0 / 284.9 MB, free: 5.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002672/0.01281, allocations: 256.2 kB / 285.1 MB, free: 5.043 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.01283, allocations: 10.66 kB / 285.1 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01283, allocations: 0 / 285.1 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.01304, allocations: 102.9 kB / 285.2 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.202e-05/0.01312, allocations: 31.98 kB / 285.3 MB, free: 4.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/0.01554, allocations: 6.094 MB / 291.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.013e-05/0.01563, allocations: 23.78 kB / 291.4 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.01564, allocations: 8 kB / 291.4 MB, free: 14.43 MB / 282.7 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 (With_Ron_Goff_Vknee.off,With_Ron_Goff.off,Ideal.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 9.772e-05/0.01574, allocations: 164.6 kB / 291.5 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.01578, allocations: 43.75 kB / 291.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.01581, allocations: 39.17 kB / 291.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.01581, allocations: 0 / 291.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.01581, allocations: 7.938 kB / 291.6 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.01582, allocations: 4.016 kB / 291.6 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.01601, allocations: 217.1 kB / 291.8 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.01602, allocations: 128 / 291.8 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.574e-05/0.01606, allocations: 31.91 kB / 291.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001456/0.01621, allocations: 102.9 kB / 292 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.01622, allocations: 4 kB / 292 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.01855, allocations: 6.087 MB / 298.1 MB, free: 7.352 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.01856, allocations: 4 kB / 298.1 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.01889, allocations: 355.4 kB / 298.4 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.837e-05/0.01897, allocations: 51.72 kB / 298.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.01898, allocations: 4.094 kB / 298.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.01909, allocations: 23.92 kB / 298.5 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.01916, allocations: 27.95 kB / 298.5 MB, free: 6.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.01917, allocations: 7.984 kB / 298.5 MB, free: 6.855 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001317/0.0193, allocations: 214.9 kB / 298.7 MB, free: 6.648 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01931, allocations: 0 / 298.7 MB, free: 6.648 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004928/0.0198, allocations: 123.7 kB / 298.9 MB, free: 6.527 MB / 282.7 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.0001107/0.01991, allocations: 107.2 kB / 299 MB, free: 6.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000491/0.0204, allocations: 0.6416 MB / 299.6 MB, free: 5.715 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.0204, allocations: 0 / 299.6 MB, free: 5.715 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.02073, allocations: 0.6024 MB / 300.2 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.02101, allocations: 53.11 kB / 300.3 MB, free: 5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009514/0.02196, allocations: 0.6067 MB / 300.9 MB, free: 4.367 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.457e-05/0.02204, allocations: 104.6 kB / 301 MB, free: 4.246 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.461e-05/0.02212, allocations: 22.33 kB / 301 MB, free: 4.227 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.02225, allocations: 126.2 kB / 301.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02225, allocations: 0 / 301.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of Templates: time 0.1057/0.128, allocations: 5.289 MB / 306.4 MB, free: 38.35 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9113256381824613]