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.001518/0.001518, allocations: 104.2 kB / 17.06 MB, free: 5.992 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.00168/0.00168, allocations: 191 kB / 18 MB, free: 5.078 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.616/1.616, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.436/0.4373, allocations: 49.43 MB / 400.7 MB, free: 9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.007417/0.4448, allocations: 3.489 MB / 404.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.4478, allocations: 0.7556 MB / 405 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008543/0.4487, allocations: 7.938 kB / 405 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.4493, allocations: 67.3 kB / 405 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005064/0.4498, allocations: 142.8 kB / 405.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.4504, allocations: 103.8 kB / 405.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007748/0.4512, allocations: 0.4977 MB / 405.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004217/0.4516, allocations: 136.5 kB / 405.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/0.452, allocations: 191.3 kB / 406.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.4524, allocations: 211.1 kB / 406.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.872e-05/0.4525, allocations: 40 kB / 406.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.706e-05/0.4526, allocations: 40 kB / 406.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.4527, allocations: 91.62 kB / 406.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00028/0.453, allocations: 218.9 kB / 406.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007151/0.4537, allocations: 494.2 kB / 407.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.54e-05/0.4537, allocations: 4 kB / 407.2 MB, free: 2.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.919e-06/0.4538, allocations: 3.938 kB / 407.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.4538, allocations: 3.984 kB / 407.2 MB, free: 2.582 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.001659/0.4554, allocations: 0.7169 MB / 407.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.082e-05/0.4555, allocations: 11.89 kB / 407.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.4557, allocations: 48.38 kB / 408 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.4564, allocations: 323.2 kB / 408.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.4564, allocations: 28.97 kB / 408.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.4565, allocations: 28.38 kB / 408.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007132/0.4572, allocations: 355.1 kB / 408.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.4572, allocations: 8 kB / 408.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.312e-05/0.4573, allocations: 8 kB / 408.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.4573, allocations: 8 kB / 408.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005563/0.4579, allocations: 270.4 kB / 409 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/0.4606, allocations: 1.403 MB / 410.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006573/0.4613, allocations: 222.4 kB / 410.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.4616, allocations: 116.5 kB / 410.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.4616, allocations: 4 kB / 410.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.4617, allocations: 30.56 kB / 410.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.396e-06/0.4617, allocations: 0 / 410.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001919/0.4636, allocations: 0.706 MB / 411.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.4637, allocations: 59.34 kB / 411.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004996/0.4642, allocations: 304.6 kB / 411.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.207e-05/0.4643, allocations: 29.7 kB / 411.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.4645, allocations: 208.2 kB / 412 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.4646, allocations: 74.89 kB / 412.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.4648, allocations: 57.61 kB / 412.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002893/0.4651, allocations: 338.8 kB / 412.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.4653, allocations: 83.95 kB / 412.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.4656, allocations: 120.2 kB / 412.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004501/0.466, allocations: 208.1 kB / 412.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4661, allocations: 0 / 412.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008289/0.4669, allocations: 355.5 kB / 413.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.4669, allocations: 14.44 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.467, allocations: 0 / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006111/0.4676, allocations: 114.5 kB / 413.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.4678, allocations: 23.98 kB / 413.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005273/0.4731, allocations: 4.978 MB / 418.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.4735, allocations: 27.73 kB / 418.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.4735, allocations: 8 kB / 418.4 MB, free: 6.543 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.0002639/0.4738, allocations: 149.7 kB / 418.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.127e-05/0.4739, allocations: 35.56 kB / 418.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.373e-05/0.4739, allocations: 39.17 kB / 418.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.474, allocations: 64 / 418.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.474, allocations: 4 kB / 418.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.474, allocations: 7.984 kB / 418.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004714/0.4745, allocations: 369.3 kB / 419 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.4745, allocations: 0 / 419 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.4746, allocations: 23.97 kB / 419 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.4749, allocations: 122.6 kB / 419.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.475, allocations: 4 kB / 419.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005059/0.48, allocations: 4.967 MB / 424.1 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4801, allocations: 0 / 424.1 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.4808, allocations: 397.5 kB / 424.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.481, allocations: 132.6 kB / 424.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.481, allocations: 8.062 kB / 424.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.4812, allocations: 19.98 kB / 424.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.4813, allocations: 23.97 kB / 424.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.4814, allocations: 7.938 kB / 424.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.4816, allocations: 219.1 kB / 424.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4816, allocations: 0 / 424.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007778/0.4824, allocations: 115.7 kB / 425 MB, free: 15.4 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.0002315/0.4827, allocations: 116.6 kB / 425.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.4838, allocations: 0.577 MB / 425.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4838, allocations: 0 / 425.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.4845, allocations: 479.7 kB / 426.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.4849, allocations: 65.23 kB / 426.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.4864, allocations: 0.6185 MB / 426.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.4869, allocations: 0.7997 MB / 427.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.4871, allocations: 22.97 kB / 427.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.598e-05/0.4871, allocations: 23.44 kB / 427.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.4871, allocations: 0 / 427.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of Templates: time 0.01132/0.4985, allocations: 5.452 MB / 433.1 MB, free: 7.18 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