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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001859/0.001859, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002466/0.002466, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.639/1.639, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4243, allocations: 50.54 MB / 409.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005616/0.43, allocations: 3.516 MB / 412.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.4317, allocations: 0.8373 MB / 413.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.4319, allocations: 8 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.4321, allocations: 71.3 kB / 413.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003858/0.4325, allocations: 134.8 kB / 413.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.433, allocations: 135.8 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006804/0.4337, allocations: 0.5016 MB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.434, allocations: 147 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004022/0.4344, allocations: 195.2 kB / 414.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.4347, allocations: 215.1 kB / 415 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.4348, allocations: 36 kB / 415 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.4349, allocations: 44 kB / 415.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.984e-05/0.435, allocations: 87.62 kB / 415.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.4352, allocations: 226.9 kB / 415.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.4357, allocations: 0.4917 MB / 415.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4357, allocations: 0 / 415.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4357, allocations: 4 kB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.4357, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.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.001195/0.4369, allocations: 0.7207 MB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.437, allocations: 8.031 kB / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004558/0.4374, allocations: 76.34 kB / 416.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/0.438, allocations: 339.2 kB / 417 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.438, allocations: 25.03 kB / 417 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.4382, allocations: 28.38 kB / 417.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006174/0.4389, allocations: 359 kB / 417.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4389, allocations: 4 kB / 417.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.4389, allocations: 8 kB / 417.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.4389, allocations: 12 kB / 417.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005257/0.4395, allocations: 270.4 kB / 417.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.4415, allocations: 1.415 MB / 419.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.4419, allocations: 222.4 kB / 419.3 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.4421, allocations: 105.2 kB / 419.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.4422, allocations: 11.94 kB / 419.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.4422, allocations: 46.34 kB / 419.5 MB, free: 7.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.4422, allocations: 4 kB / 419.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001505/0.4437, allocations: 0.6893 MB / 420.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.4438, allocations: 59.39 kB / 420.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.4441, allocations: 308.6 kB / 420.5 MB, free: 5.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.4442, allocations: 29.7 kB / 420.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002481/0.4444, allocations: 216.1 kB / 420.8 MB, free: 5.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.59e-05/0.4445, allocations: 78.89 kB / 420.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-05/0.4446, allocations: 45.7 kB / 420.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4447, allocations: 338.8 kB / 421.2 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.4449, allocations: 87.89 kB / 421.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.4452, allocations: 124.2 kB / 421.4 MB, free: 5.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.4456, allocations: 196.1 kB / 421.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4456, allocations: 0 / 421.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006819/0.4463, allocations: 363.5 kB / 422 MB, free: 4.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.4463, allocations: 4 kB / 422 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.4463, allocations: 0 / 422 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004847/0.4468, allocations: 118.4 kB / 422.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.447, allocations: 27.98 kB / 422.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004329/0.4513, allocations: 4.971 MB / 427.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.4516, allocations: 35.83 kB / 427.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.4516, allocations: 4 kB / 427.1 MB, free: 14.87 MB / 350.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.000196/0.4518, allocations: 157.3 kB / 427.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.921e-05/0.4519, allocations: 35.56 kB / 427.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.452, allocations: 39.17 kB / 427.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.452, allocations: 4 kB / 427.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.452, allocations: 0 / 427.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.452, allocations: 7.984 kB / 427.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.4525, allocations: 377.2 kB / 427.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4525, allocations: 288 / 427.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.4526, allocations: 23.97 kB / 427.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003224/0.4529, allocations: 114.6 kB / 427.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.453, allocations: 7.938 kB / 427.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003901/0.4569, allocations: 4.966 MB / 432.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4569, allocations: 4.156 kB / 432.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.4576, allocations: 405.4 kB / 433.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.4577, allocations: 136.5 kB / 433.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.4578, allocations: 8 kB / 433.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.458, allocations: 23.98 kB / 433.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.4581, allocations: 19.97 kB / 433.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.4581, allocations: 11.94 kB / 433.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.4584, allocations: 223.1 kB / 433.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4584, allocations: 0 / 433.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006956/0.4591, allocations: 107.8 kB / 433.8 MB, free: 7.707 MB / 350.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.0002116/0.4593, allocations: 119.2 kB / 433.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.4604, allocations: 0.5768 MB / 434.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.4604, allocations: 4.125 kB / 434.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000606/0.461, allocations: 483.8 kB / 434.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.4615, allocations: 60.84 kB / 435 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.4627, allocations: 0.6106 MB / 435.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.4631, allocations: 0.7992 MB / 436.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.4632, allocations: 26.91 kB / 436.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.4633, allocations: 27.42 kB / 436.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4633, allocations: 0 / 436.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of Templates: time 0.01083/0.4741, allocations: 5.456 MB / 441.9 MB, free: 15.47 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches