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.001051/0.001051, allocations: 109.4 kB / 17.06 MB, free: 6.137 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.001068/0.001068, allocations: 192 kB / 18 MB, free: 5.219 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.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4494, allocations: 49.44 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005001/0.4545, allocations: 3.483 MB / 404.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.456, allocations: 0.7439 MB / 405 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.4562, allocations: 7.938 kB / 405 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.4565, allocations: 67.36 kB / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.4567, allocations: 138.8 kB / 405.2 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.4571, allocations: 107.8 kB / 405.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004894/0.4576, allocations: 0.4978 MB / 405.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/0.4579, allocations: 136.5 kB / 405.9 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.4581, allocations: 195.2 kB / 406.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.4584, allocations: 203.1 kB / 406.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.99e-05/0.4584, allocations: 40 kB / 406.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.76e-05/0.4585, allocations: 40 kB / 406.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.4586, allocations: 99.55 kB / 406.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.4589, allocations: 226.9 kB / 406.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005596/0.4595, allocations: 490.1 kB / 407.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4595, allocations: 4 kB / 407.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4595, allocations: 0 / 407.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.4595, allocations: 0 / 407.2 MB, free: 2.418 MB / 318.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.001235/0.4608, allocations: 0.7208 MB / 407.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.4608, allocations: 11.89 kB / 407.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.4609, allocations: 52.31 kB / 408 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004958/0.4614, allocations: 323.1 kB / 408.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.4615, allocations: 25.03 kB / 408.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.615e-05/0.4615, allocations: 28.38 kB / 408.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.4622, allocations: 359.1 kB / 408.7 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.4622, allocations: 4 kB / 408.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.4622, allocations: 8 kB / 408.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.4623, allocations: 8 kB / 408.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005697/0.4628, allocations: 274.4 kB / 409 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.465, allocations: 1.403 MB / 410.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004488/0.4654, allocations: 218.5 kB / 410.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.4657, allocations: 112.8 kB / 410.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.4657, allocations: 4 kB / 410.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.4658, allocations: 30.56 kB / 410.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.096e-06/0.4658, allocations: 4 kB / 410.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001679/0.4675, allocations: 0.7056 MB / 411.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.4676, allocations: 59.41 kB / 411.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.4679, allocations: 304.6 kB / 411.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.468, allocations: 33.64 kB / 411.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.4681, allocations: 208.2 kB / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.051e-05/0.4682, allocations: 74.89 kB / 412.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.543e-05/0.4683, allocations: 49.61 kB / 412.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4685, allocations: 338.8 kB / 412.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.4687, allocations: 83.95 kB / 412.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.4689, allocations: 128.2 kB / 412.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.4693, allocations: 200.1 kB / 412.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4693, allocations: 3.938 kB / 412.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007653/0.4701, allocations: 355.6 kB / 413.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4701, allocations: 8 kB / 413.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.4701, allocations: 4.062 kB / 413.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004566/0.4706, allocations: 122.4 kB / 413.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.4708, allocations: 23.98 kB / 413.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004688/0.4755, allocations: 4.97 MB / 418.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.4758, allocations: 27.73 kB / 418.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.4759, allocations: 11.94 kB / 418.4 MB, free: 6.371 MB / 334.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.0002814/0.4761, allocations: 151.5 kB / 418.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-05/0.4762, allocations: 35.56 kB / 418.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.495e-05/0.4763, allocations: 39.17 kB / 418.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.4763, allocations: 0 / 418.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4763, allocations: 0 / 418.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.4763, allocations: 7.984 kB / 418.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.4768, allocations: 369.3 kB / 419 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4768, allocations: 0 / 419 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.477, allocations: 31.97 kB / 419 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003677/0.4773, allocations: 118.6 kB / 419.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.4774, allocations: 4 kB / 419.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00445/0.4818, allocations: 4.963 MB / 424.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4819, allocations: 0 / 424.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000822/0.4827, allocations: 401.5 kB / 424.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/0.4829, allocations: 128.6 kB / 424.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.483, allocations: 7.984 kB / 424.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.4833, allocations: 15.98 kB / 424.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.4834, allocations: 31.97 kB / 424.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.4834, allocations: 7.938 kB / 424.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.4837, allocations: 219.1 kB / 424.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4837, allocations: 0 / 424.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008031/0.4845, allocations: 115.7 kB / 425 MB, free: 15.23 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.000205/0.4847, allocations: 111.2 kB / 425.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4858, allocations: 0.5729 MB / 425.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4858, allocations: 0.6562 kB / 425.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005512/0.4864, allocations: 483.9 kB / 426.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.4868, allocations: 61.11 kB / 426.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.4882, allocations: 0.6146 MB / 426.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.4886, allocations: 0.7952 MB / 427.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.4888, allocations: 30.91 kB / 427.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.523e-05/0.4888, allocations: 19.44 kB / 427.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4889, allocations: 0 / 427.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of Templates: time 0.01138/0.5002, allocations: 5.462 MB / 433.1 MB, free: 7.008 MB / 350.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