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.001466/0.001466, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.874/1.874, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001102/0.001102, allocations: 91.19 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003728, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3237, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.4418, allocations: 77.4 MB / 451.9 MB, free: 3.371 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.4422, allocations: 79.95 kB / 452 MB, free: 3.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02707/0.4693, allocations: 6.313 MB / 458.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.4693, allocations: 0 / 458.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.995e-05/0.4694, allocations: 8 kB / 458.3 MB, free: 12.92 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.00145/0.4708, allocations: 0.6626 MB / 459 MB, free: 12.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4709, allocations: 8.031 kB / 459 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.471, allocations: 51.38 kB / 459 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.4715, allocations: 302.1 kB / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.4716, allocations: 32.59 kB / 459.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.753e-05/0.4717, allocations: 35.94 kB / 459.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009519/0.4726, allocations: 354.8 kB / 459.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.4727, allocations: 0 / 459.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/0.4727, allocations: 12 kB / 459.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.4728, allocations: 8 kB / 459.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009706/0.4737, allocations: 282.4 kB / 460 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003088/0.4768, allocations: 1.435 MB / 461.5 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.4776, allocations: 224.9 kB / 461.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.4777, allocations: 4 kB / 461.7 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.4777, allocations: 38.56 kB / 461.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.4777, allocations: 0 / 461.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.002506/0.4802, allocations: 0.7145 MB / 462.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.4803, allocations: 55.41 kB / 462.5 MB, free: 8.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000446/0.4808, allocations: 267.7 kB / 462.8 MB, free: 8.168 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.318e-05/0.4808, allocations: 33.7 kB / 462.8 MB, free: 8.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.481, allocations: 254.6 kB / 463.1 MB, free: 7.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.048e-05/0.4811, allocations: 82.83 kB / 463.1 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.4812, allocations: 8 kB / 463.1 MB, free: 7.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4813, allocations: 318.8 kB / 463.5 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.4817, allocations: 88.45 kB / 463.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/0.4821, allocations: 128.2 kB / 463.7 MB, free: 7.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.4824, allocations: 91.86 kB / 463.8 MB, free: 7.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4825, allocations: 4 kB / 463.8 MB, free: 7.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001266/0.4837, allocations: 359.7 kB / 464.1 MB, free: 6.781 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.4838, allocations: 8.938 kB / 464.1 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4838, allocations: 0 / 464.1 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006308/0.4844, allocations: 114.5 kB / 464.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.4848, allocations: 31.97 kB / 464.3 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00492/0.4897, allocations: 4.473 MB / 468.7 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.4902, allocations: 39.75 kB / 468.8 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.4902, allocations: 8.062 kB / 468.8 MB, free: 1.691 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.0002745/0.4905, allocations: 145.8 kB / 468.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.4906, allocations: 35.62 kB / 469 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.809e-05/0.4907, allocations: 39.11 kB / 469 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-06/0.4908, allocations: 4 kB / 469 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4908, allocations: 3.984 kB / 469 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4908, allocations: 0 / 469 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000644/0.4914, allocations: 373.3 kB / 469.4 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.4915, allocations: 0 / 469.4 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.4917, allocations: 35.91 kB / 469.4 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005889/0.4923, allocations: 110.5 kB / 469.5 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.4924, allocations: 4 kB / 469.5 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005147/0.4975, allocations: 4.485 MB / 474 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4976, allocations: 3.984 kB / 474 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.4987, allocations: 409.6 kB / 474.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.4989, allocations: 128.9 kB / 474.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.499, allocations: 8 kB / 474.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.4994, allocations: 31.97 kB / 474.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.4995, allocations: 27.84 kB / 474.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.4996, allocations: 4 kB / 474.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003246/0.4999, allocations: 215.1 kB / 474.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4999, allocations: 0 / 474.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008657/0.5008, allocations: 115.8 kB / 474.9 MB, free: 11.03 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.0001504/0.5009, allocations: 107.2 kB / 475 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.5023, allocations: 0.5856 MB / 475.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5023, allocations: 0 / 475.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007782/0.5031, allocations: 479.9 kB / 476.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004949/0.5036, allocations: 53.39 kB / 476.1 MB, free: 9.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.5054, allocations: 0.7909 MB / 476.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.5058, allocations: 0.8105 MB / 477.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.5059, allocations: 27.42 kB / 477.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5059, allocations: 0 / 477.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of Templates: time 0.01425/0.5202, allocations: 7.955 MB / 485.7 MB, free: 108 kB / 362.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