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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001576, allocations: 105.1 kB / 16.92 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB 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: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001455, allocations: 47.23 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1598, allocations: 49.44 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006017/0.1659, allocations: 3.485 MB / 353.5 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.1678, allocations: 0.752 MB / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004659/0.1683, allocations: 8 kB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003914/0.1688, allocations: 67.3 kB / 354.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006869/0.1695, allocations: 134.9 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005542/0.17, allocations: 103.9 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000815/0.1709, allocations: 0.5053 MB / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/0.1712, allocations: 139.1 kB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.1716, allocations: 183.3 kB / 355.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.1719, allocations: 211.1 kB / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.932e-05/0.172, allocations: 44 kB / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.073e-05/0.1721, allocations: 39.94 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1722, allocations: 99.61 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003569/0.1726, allocations: 218.9 kB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006059/0.1732, allocations: 482.3 kB / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1732, allocations: 0 / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1732, allocations: 0 / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1733, allocations: 0 / 356.5 MB, free: 13.96 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.001431/0.1747, allocations: 0.7271 MB / 357.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.1748, allocations: 11.89 kB / 357.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.1749, allocations: 48.38 kB / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.1753, allocations: 311.3 kB / 357.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.1753, allocations: 21.03 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.1754, allocations: 44.31 kB / 357.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006308/0.176, allocations: 363 kB / 358 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.176, allocations: 0 / 358 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.1761, allocations: 12 kB / 358 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1761, allocations: 8 kB / 358 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005716/0.1767, allocations: 274.4 kB / 358.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.1788, allocations: 1.411 MB / 359.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004691/0.1793, allocations: 222.3 kB / 359.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.1796, allocations: 104.8 kB / 360 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.1796, allocations: 8 kB / 360 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.1796, allocations: 38.5 kB / 360 MB, free: 10.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.1797, allocations: 0 / 360 MB, free: 10.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001704/0.1814, allocations: 0.702 MB / 360.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.1814, allocations: 51.41 kB / 360.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.1818, allocations: 304.6 kB / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.1819, allocations: 29.7 kB / 361.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.1821, allocations: 216.1 kB / 361.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.1821, allocations: 74.91 kB / 361.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1823, allocations: 45.7 kB / 361.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1824, allocations: 338.8 kB / 361.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.1827, allocations: 87.95 kB / 361.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.1829, allocations: 124.7 kB / 362 MB, free: 8.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.1833, allocations: 204.1 kB / 362.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1833, allocations: 0 / 362.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007226/0.184, allocations: 359.7 kB / 362.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1841, allocations: 4 kB / 362.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.1841, allocations: 4 kB / 362.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004428/0.1845, allocations: 118.4 kB / 362.7 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.1847, allocations: 27.97 kB / 362.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004561/0.1893, allocations: 4.982 MB / 367.7 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.1896, allocations: 23.83 kB / 367.7 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1896, allocations: 8 kB / 367.7 MB, free: 1.91 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.0002024/0.1898, allocations: 145.8 kB / 367.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.1899, allocations: 47.5 kB / 367.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.814e-05/0.19, allocations: 39.17 kB / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.19, allocations: 0 / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.19, allocations: 0 / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.19, allocations: 0 / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.1905, allocations: 381.2 kB / 368.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.1905, allocations: 0 / 368.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.1906, allocations: 19.98 kB / 368.3 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/0.191, allocations: 118.5 kB / 368.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.191, allocations: 4 kB / 368.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2663/0.4573, allocations: 4.964 MB / 373.4 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.4574, allocations: 0 / 373.4 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006558/0.458, allocations: 397.6 kB / 373.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4582, allocations: 128.9 kB / 373.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.4582, allocations: 7.625 kB / 373.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.4584, allocations: 22.17 kB / 374 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.4586, allocations: 22.61 kB / 374 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.4586, allocations: 13.53 kB / 374 MB, free: 21.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.4589, allocations: 218.9 kB / 374.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4589, allocations: 0 / 374.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000738/0.4596, allocations: 112.9 kB / 374.3 MB, free: 20.93 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.0001637/0.4598, allocations: 110.6 kB / 374.4 MB, free: 20.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009897/0.4608, allocations: 0.582 MB / 375 MB, free: 20.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4608, allocations: 0 / 375 MB, free: 20.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004859/0.4613, allocations: 478.1 kB / 375.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.4618, allocations: 66.11 kB / 375.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.4632, allocations: 0.6272 MB / 376.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4635, allocations: 0.7978 MB / 377 MB, free: 19.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.4637, allocations: 25.64 kB / 377 MB, free: 19.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/0.4637, allocations: 19.28 kB / 377 MB, free: 19.16 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4637, allocations: 0 / 377 MB, free: 19.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01216/0.4759, allocations: 5.375 MB / 382.4 MB, free: 18.64 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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) 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) Reference file matches