Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002666/0.002666, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.495/4.495, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002203/0.002203, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006437/0.0006437, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1501, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006713/0.1569, allocations: 2.762 MB / 377.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.1598, allocations: 0.796 MB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005079/0.1604, allocations: 4 kB / 378.1 MB, free: 11.85 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.1606, allocations: 43.61 kB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008383/0.1615, allocations: 167.5 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006586/0.1622, allocations: 79.91 kB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1635, allocations: 347.2 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004877/0.164, allocations: 102.6 kB / 378.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006825/0.1648, allocations: 163.3 kB / 379 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004866/0.1653, allocations: 179.2 kB / 379.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.1654, allocations: 20 kB / 379.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.1656, allocations: 20 kB / 379.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.1657, allocations: 67.67 kB / 379.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.166, allocations: 97.52 kB / 379.4 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000791/0.1668, allocations: 363.2 kB / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1668, allocations: 0 / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.348e-06/0.1668, allocations: 0 / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1669, allocations: 0 / 379.7 MB, free: 10.22 MB / 282.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.002348/0.1692, allocations: 0.6583 MB / 380.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.082e-05/0.1693, allocations: 8.031 kB / 380.4 MB, free: 9.508 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/0.1696, allocations: 47.44 kB / 380.4 MB, free: 9.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009535/0.1706, allocations: 298.2 kB / 380.7 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.1707, allocations: 28.61 kB / 380.7 MB, free: 9.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002024/0.1709, allocations: 36 kB / 380.8 MB, free: 9.066 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.173, allocations: 358.7 kB / 381.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.1731, allocations: 0 / 381.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.948e-05/0.1732, allocations: 12 kB / 381.1 MB, free: 8.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.1733, allocations: 8 kB / 381.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.1749, allocations: 282.4 kB / 381.4 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.18, allocations: 1.43 MB / 382.9 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1812, allocations: 230.5 kB / 383.1 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.1813, allocations: 0 / 383.1 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/0.1814, allocations: 34.56 kB / 383.1 MB, free: 6.594 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 6.352e-06/0.1814, allocations: 4 kB / 383.1 MB, free: 6.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.003941/0.1853, allocations: 0.7107 MB / 383.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.1855, allocations: 63.2 kB / 383.9 MB, free: 5.734 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008161/0.1863, allocations: 296.6 kB / 384.2 MB, free: 5.441 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.1864, allocations: 33.64 kB / 384.2 MB, free: 5.402 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.1868, allocations: 262.5 kB / 384.5 MB, free: 5.141 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.1869, allocations: 78.98 kB / 384.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.187, allocations: 8 kB / 384.6 MB, free: 5.055 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.1872, allocations: 318.8 kB / 384.9 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005708/0.1878, allocations: 83.95 kB / 384.9 MB, free: 4.652 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.1884, allocations: 132.2 kB / 385.1 MB, free: 4.508 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005692/0.189, allocations: 87.92 kB / 385.2 MB, free: 4.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.189, allocations: 0 / 385.2 MB, free: 4.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002036/0.1911, allocations: 355.7 kB / 385.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.1912, allocations: 7.984 kB / 385.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.1912, allocations: 8.062 kB / 385.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009693/0.1922, allocations: 118.4 kB / 385.6 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.1928, allocations: 27.98 kB / 385.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3917/0.5845, allocations: 4.469 MB / 390.1 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006416/0.5852, allocations: 31.08 kB / 390.2 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.618e-05/0.5853, allocations: 9.438 kB / 390.2 MB, free: 19.08 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 (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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004306/0.5858, allocations: 147.8 kB / 390.3 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.586, allocations: 37.42 kB / 390.4 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.5861, allocations: 38.3 kB / 390.4 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.5862, allocations: 2.641 kB / 390.4 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5862, allocations: 0 / 390.4 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.5862, allocations: 2.562 kB / 390.4 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.5873, allocations: 372.1 kB / 390.8 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.5874, allocations: 1.031 kB / 390.8 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.5878, allocations: 33.44 kB / 390.8 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009415/0.5887, allocations: 115.5 kB / 390.9 MB, free: 18.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.5889, allocations: 7.906 kB / 390.9 MB, free: 18.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/0.596, allocations: 4.478 MB / 395.4 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5961, allocations: 0 / 395.4 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.5977, allocations: 411.4 kB / 395.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/0.5981, allocations: 126.8 kB / 395.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.5982, allocations: 5.281 kB / 395.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.5988, allocations: 28.31 kB / 396 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.5991, allocations: 24.75 kB / 396 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-05/0.5992, allocations: 8.141 kB / 396 MB, free: 14.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005202/0.5997, allocations: 226 kB / 396.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.5997, allocations: 0 / 396.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001729/0.6015, allocations: 112.5 kB / 396.3 MB, free: 14.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003299/0.6019, allocations: 109.8 kB / 396.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.6039, allocations: 0.577 MB / 397 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.604, allocations: 2.062 kB / 397 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.6052, allocations: 494.2 kB / 397.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009256/0.6062, allocations: 55.41 kB / 397.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.6089, allocations: 0.7887 MB / 398.3 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.6095, allocations: 0.8072 MB / 399.1 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.6098, allocations: 19.97 kB / 399.2 MB, free: 12.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6098, allocations: 0 / 399.2 MB, free: 12.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02712/0.6369, allocations: 7.955 MB / 407.1 MB, free: 9.891 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches