Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001111/0.001111, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001265/0.001265, allocations: 164.8 kB / 25.61 MB, free: 8.902 MB / 18.57 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 0.989/0.989, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] 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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.112e-05, allocations: 5.406 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003426/0.003447, allocations: 3.437 MB / 277.6 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.004791, allocations: 0.8208 MB / 278.5 MB, free: 148 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.004968, allocations: 15.94 kB / 278.5 MB, free: 132 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.00513, allocations: 71.28 kB / 278.6 MB, free: 60 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.005345, allocations: 142.6 kB / 278.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.005665, allocations: 139.7 kB / 278.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.006035, allocations: 0.5286 MB / 279.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.006204, allocations: 95.55 kB / 279.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002989/0.006503, allocations: 287.4 kB / 279.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.00667, allocations: 159.5 kB / 279.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.006711, allocations: 40 kB / 279.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.081e-05/0.006782, allocations: 44 kB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.006837, allocations: 95.58 kB / 280.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.006941, allocations: 151.7 kB / 280.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.007251, allocations: 346.7 kB / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.007254, allocations: 0 / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.007255, allocations: 0 / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.007261, allocations: 0 / 280.5 MB, free: 14.05 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.0007203/0.007981, allocations: 0.7604 MB / 281.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.008025, allocations: 11.98 kB / 281.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.008277, allocations: 108.6 kB / 281.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.008573, allocations: 268.4 kB / 281.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.008596, allocations: 21.03 kB / 281.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.00863, allocations: 36.38 kB / 281.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003563/0.008986, allocations: 364.3 kB / 282.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.009001, allocations: 192 / 282.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.009027, allocations: 16.38 kB / 282.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.009042, allocations: 11.94 kB / 282.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001539/0.009196, allocations: 104.4 kB / 282.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.01031, allocations: 1.339 MB / 283.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.01051, allocations: 162.9 kB / 283.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.858e-05/0.01057, allocations: 51.66 kB / 283.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.01059, allocations: 4 kB / 283.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.01062, allocations: 45.33 kB / 283.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.01062, allocations: 0 / 283.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006742/0.01129, allocations: 343.3 kB / 284.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.01132, allocations: 51.41 kB / 284.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.01152, allocations: 334.1 kB / 284.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.01154, allocations: 29.7 kB / 284.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.01167, allocations: 263.1 kB / 284.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.737e-05/0.01172, allocations: 83.34 kB / 284.9 MB, free: 9.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.01179, allocations: 55.3 kB / 285 MB, free: 9.355 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.01193, allocations: 0.5156 MB / 285.5 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-05/0.01198, allocations: 27.97 kB / 285.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.773e-05/0.01206, allocations: 83.08 kB / 285.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.01218, allocations: 126.3 kB / 285.7 MB, free: 8.555 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01219, allocations: 4 kB / 285.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002965/0.01248, allocations: 248.2 kB / 286 MB, free: 8.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.0125, allocations: 4 kB / 286 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.0125, allocations: 0 / 286 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002219/0.01272, allocations: 106.9 kB / 286.1 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.166e-05/0.01281, allocations: 27.97 kB / 286.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002886/0.0157, allocations: 6.09 MB / 292.2 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.01584, allocations: 23.88 kB / 292.2 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.01585, allocations: 4 kB / 292.2 MB, free: 1.684 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 0.0001497/0.016, allocations: 172.5 kB / 292.4 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.249e-05/0.01605, allocations: 47.8 kB / 292.4 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.01609, allocations: 43.16 kB / 292.5 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.01609, allocations: 4 kB / 292.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.0161, allocations: 0 / 292.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.0161, allocations: 3.984 kB / 292.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.01633, allocations: 217 kB / 292.7 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01633, allocations: 0 / 292.7 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.01638, allocations: 15.98 kB / 292.7 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.01656, allocations: 102.9 kB / 292.8 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.01657, allocations: 8 kB / 292.8 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002385/0.01895, allocations: 6.087 MB / 298.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01895, allocations: 3.984 kB / 298.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.01925, allocations: 357.8 kB / 299.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.587e-05/0.01933, allocations: 47.72 kB / 299.3 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.01935, allocations: 8.094 kB / 299.3 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.01946, allocations: 23.92 kB / 299.3 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.01952, allocations: 31.89 kB / 299.4 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.01954, allocations: 4 kB / 299.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000102/0.01964, allocations: 218.9 kB / 299.6 MB, free: 9.902 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01964, allocations: 0 / 299.6 MB, free: 9.902 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004707/0.02011, allocations: 119.8 kB / 299.7 MB, free: 9.785 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.0001266/0.02023, allocations: 103.4 kB / 299.8 MB, free: 9.672 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004797/0.02071, allocations: 0.6411 MB / 300.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.02072, allocations: 4 kB / 300.4 MB, free: 8.973 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.02099, allocations: 0.6024 MB / 301 MB, free: 8.312 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.02128, allocations: 53.92 kB / 301.1 MB, free: 8.262 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009871/0.02226, allocations: 0.6103 MB / 301.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.019e-05/0.02233, allocations: 108.5 kB / 301.8 MB, free: 7.496 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.626e-05/0.02241, allocations: 26.33 kB / 301.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.02254, allocations: 126.2 kB / 302 MB, free: 7.348 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.02254, allocations: 0 / 302 MB, free: 7.348 MB / 282.7 MB Notification: Performance of Templates: time 0.007517/0.03006, allocations: 5.419 MB / 307.4 MB, free: 2.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.9459418822079897]