Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00221/0.002209, allocations: 180.9 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0009178/0.000918, allocations: 93.08 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002631, allocations: 4 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2814, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3851, allocations: 77.4 MB / 453.2 MB, free: 3.262 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.3854, allocations: 79.89 kB / 453.3 MB, free: 3.184 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01614/0.4015, allocations: 6.306 MB / 459.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4016, allocations: 0 / 459.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.4016, allocations: 8 kB / 459.6 MB, free: 12.82 MB / 346.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.001055/0.4027, allocations: 0.6622 MB / 460.3 MB, free: 12.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4027, allocations: 16.03 kB / 460.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.036e-05/0.4028, allocations: 47.81 kB / 460.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.4032, allocations: 302.1 kB / 460.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.4033, allocations: 20.66 kB / 460.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.4033, allocations: 39.88 kB / 460.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006094/0.404, allocations: 354.8 kB / 461 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.404, allocations: 4 kB / 461 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.404, allocations: 16 kB / 461 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.404, allocations: 8 kB / 461 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005519/0.4046, allocations: 278.4 kB / 461.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.4067, allocations: 1.431 MB / 462.8 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.4071, allocations: 236.9 kB / 463 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.4072, allocations: 0 / 463 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.4072, allocations: 34.56 kB / 463 MB, free: 9.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.4072, allocations: 0 / 463 MB, free: 9.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001532/0.4088, allocations: 0.7224 MB / 463.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.4088, allocations: 51.41 kB / 463.8 MB, free: 8.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.4091, allocations: 271.7 kB / 464.1 MB, free: 8.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.4092, allocations: 29.7 kB / 464.1 MB, free: 8.023 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.4093, allocations: 208.2 kB / 464.3 MB, free: 7.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.493e-05/0.4094, allocations: 74.84 kB / 464.4 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.4094, allocations: 11.94 kB / 464.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.4096, allocations: 334.8 kB / 464.7 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.4098, allocations: 92.45 kB / 464.8 MB, free: 7.305 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.41, allocations: 124.2 kB / 464.9 MB, free: 7.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.4102, allocations: 99.84 kB / 465 MB, free: 7.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4103, allocations: 0 / 465 MB, free: 7.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007711/0.411, allocations: 367.6 kB / 465.4 MB, free: 6.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.4111, allocations: 7.938 kB / 465.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.4111, allocations: 4 kB / 465.4 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004836/0.4116, allocations: 118.5 kB / 465.5 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.4118, allocations: 31.98 kB / 465.5 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.4156, allocations: 4.473 MB / 470 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.4159, allocations: 35.92 kB / 470 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.4159, allocations: 11.94 kB / 470 MB, free: 1.598 MB / 346.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.0002053/0.4161, allocations: 149.8 kB / 470.2 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.928e-05/0.4162, allocations: 39.62 kB / 470.2 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.616e-05/0.4163, allocations: 39.17 kB / 470.3 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4163, allocations: 4 kB / 470.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.4163, allocations: 0 / 470.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4163, allocations: 0 / 470.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004081/0.4167, allocations: 377.3 kB / 470.6 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4167, allocations: 0 / 470.6 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.4168, allocations: 27.98 kB / 470.7 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003153/0.4172, allocations: 114.4 kB / 470.8 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.4172, allocations: 4 kB / 470.8 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003718/0.4209, allocations: 4.477 MB / 475.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.4209, allocations: 4.406 kB / 475.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006583/0.4216, allocations: 418 kB / 475.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.4218, allocations: 132.6 kB / 475.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/0.4218, allocations: 7.938 kB / 475.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.4221, allocations: 23.98 kB / 475.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.822e-05/0.4222, allocations: 31.89 kB / 475.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.4222, allocations: 11.98 kB / 475.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002322/0.4225, allocations: 211.1 kB / 476.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4225, allocations: 0 / 476.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006416/0.4231, allocations: 115.8 kB / 476.2 MB, free: 10.93 MB / 362.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.000136/0.4233, allocations: 106.1 kB / 476.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009109/0.4242, allocations: 0.5778 MB / 476.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4242, allocations: 0 / 476.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005027/0.4247, allocations: 484 kB / 477.3 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.4251, allocations: 54.88 kB / 477.4 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.4262, allocations: 0.7583 MB / 478.2 MB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.4266, allocations: 0.8066 MB / 479 MB, free: 8.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.4267, allocations: 30.95 kB / 479 MB, free: 7.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.4268, allocations: 23.44 kB / 479 MB, free: 7.973 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4268, allocations: 0 / 479 MB, free: 7.973 MB / 362.7 MB Notification: Performance of Templates: time 0.008552/0.4353, allocations: 4.715 MB / 483.7 MB, free: 3.285 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches