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.0008618/0.0008618, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009263/0.0009263, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9396/0.9396, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.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.202e-06/1.202e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449e-05/1.569e-05, allocations: 7.047 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003086/0.003102, allocations: 3.41 MB / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.004169, allocations: 0.7443 MB / 273.4 MB, free: 5.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.00432, allocations: 7.938 kB / 273.4 MB, free: 5.617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.004464, allocations: 67.3 kB / 273.4 MB, free: 5.551 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.004648, allocations: 148.4 kB / 273.6 MB, free: 5.406 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.004884, allocations: 110.1 kB / 273.7 MB, free: 5.301 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.005271, allocations: 0.5286 MB / 274.2 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.005422, allocations: 87.69 kB / 274.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.005676, allocations: 291.3 kB / 274.6 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.005828, allocations: 156.3 kB / 274.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.005872, allocations: 41.22 kB / 274.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.317e-05/0.005915, allocations: 40 kB / 274.8 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.187e-05/0.005967, allocations: 87.61 kB / 274.9 MB, free: 4.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.584e-05/0.006063, allocations: 152.3 kB / 275.1 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.006343, allocations: 334.7 kB / 275.4 MB, free: 3.602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006345, allocations: 0.5 kB / 275.4 MB, free: 3.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.006346, allocations: 4 kB / 275.4 MB, free: 3.598 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.00635, allocations: 0 / 275.4 MB, free: 3.598 MB / 250.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.0006382/0.006989, allocations: 0.7488 MB / 276.1 MB, free: 2.812 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.007018, allocations: 12.03 kB / 276.1 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.124e-05/0.007099, allocations: 84.61 kB / 276.2 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.007331, allocations: 248.4 kB / 276.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.007348, allocations: 25.03 kB / 276.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.007377, allocations: 32.38 kB / 276.5 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.007676, allocations: 360.3 kB / 276.9 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.007684, allocations: 192 / 276.9 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.007704, allocations: 12.38 kB / 276.9 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.007711, allocations: 11.94 kB / 276.9 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.007839, allocations: 108.4 kB / 277 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.008891, allocations: 1.359 MB / 278.4 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.009065, allocations: 147 kB / 278.5 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.48e-05/0.00912, allocations: 51.66 kB / 278.6 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.009137, allocations: 8 kB / 278.6 MB, free: 216 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.009158, allocations: 45.33 kB / 278.6 MB, free: 160 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.112e-06/0.009159, allocations: 0 / 278.6 MB, free: 160 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006006/0.00976, allocations: 343.6 kB / 279 MB, free: 15.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.009782, allocations: 51.41 kB / 279 MB, free: 15.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.00995, allocations: 326.1 kB / 279.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.009967, allocations: 29.7 kB / 279.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.01008, allocations: 263.1 kB / 279.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.01012, allocations: 79.33 kB / 279.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.01018, allocations: 59.3 kB / 279.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.01029, allocations: 0.5156 MB / 280.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.309e-05/0.01034, allocations: 31.91 kB / 280.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.914e-05/0.01041, allocations: 82.89 kB / 280.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.01052, allocations: 126.2 kB / 280.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.01052, allocations: 0 / 280.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002651/0.01079, allocations: 240.3 kB / 280.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.0108, allocations: 8 kB / 280.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01081, allocations: 3.984 kB / 280.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/0.011, allocations: 102.9 kB / 280.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.039e-05/0.01108, allocations: 27.98 kB / 280.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/0.0136, allocations: 6.098 MB / 287 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.01369, allocations: 15.89 kB / 287 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.0137, allocations: 8 kB / 287 MB, free: 7.289 MB / 266.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.858e-05/0.0138, allocations: 172.6 kB / 287.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.01384, allocations: 43.75 kB / 287.2 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.01388, allocations: 38.41 kB / 287.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.01388, allocations: 0 / 287.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.01388, allocations: 4 kB / 287.2 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01388, allocations: 3.984 kB / 287.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.01407, allocations: 209 kB / 287.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.01408, allocations: 0 / 287.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.01412, allocations: 19.98 kB / 287.5 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.01428, allocations: 111 kB / 287.6 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.01429, allocations: 0 / 287.6 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.01698, allocations: 6.09 MB / 293.7 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01698, allocations: 96 / 293.7 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.01724, allocations: 362.6 kB / 294 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.0173, allocations: 51.72 kB / 294.1 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.01732, allocations: 8.125 kB / 294.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.01742, allocations: 27.67 kB / 294.1 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.01748, allocations: 31.92 kB / 294.1 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.01749, allocations: 8 kB / 294.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.931e-05/0.01759, allocations: 218.9 kB / 294.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01759, allocations: 0 / 294.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004309/0.01802, allocations: 123.7 kB / 294.5 MB, free: 15.38 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 8.893e-05/0.01811, allocations: 99.25 kB / 294.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004299/0.01854, allocations: 0.6383 MB / 295.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01854, allocations: 0 / 295.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.01882, allocations: 0.6001 MB / 295.8 MB, free: 13.92 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.01908, allocations: 56.75 kB / 295.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008645/0.01994, allocations: 0.5955 MB / 296.5 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.277e-05/0.02, allocations: 104.5 kB / 296.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.655e-05/0.02007, allocations: 22.28 kB / 296.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.0202, allocations: 126.1 kB / 296.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.0202, allocations: 7.938 kB / 296.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of Templates: time 0.009353/0.02955, allocations: 5.391 MB / 302.1 MB, free: 7.648 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] 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","",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.897152096964419]