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.001375/0.001375, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 198 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.4474, allocations: 50.55 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005301/0.4528, allocations: 3.511 MB / 412.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.4547, allocations: 0.8412 MB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002834/0.455, allocations: 11.94 kB / 413.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.4554, allocations: 71.28 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.4557, allocations: 130.8 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.4562, allocations: 135.8 kB / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006114/0.4568, allocations: 0.5094 MB / 414.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.4572, allocations: 139 kB / 414.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.4575, allocations: 199.3 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.4578, allocations: 207 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.4578, allocations: 40 kB / 415 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.855e-05/0.4579, allocations: 40 kB / 415.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.602e-05/0.458, allocations: 95.67 kB / 415.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.4582, allocations: 226.8 kB / 415.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.4588, allocations: 0.4956 MB / 415.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.4588, allocations: 0 / 415.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4588, allocations: 0 / 415.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4588, allocations: 0 / 415.9 MB, free: 10.93 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.001171/0.46, allocations: 0.7246 MB / 416.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4601, allocations: 12.02 kB / 416.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003985/0.4605, allocations: 72.34 kB / 416.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007365/0.4612, allocations: 327.2 kB / 417 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.4612, allocations: 28.97 kB / 417 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.4613, allocations: 32.38 kB / 417.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006824/0.462, allocations: 355.1 kB / 417.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.462, allocations: 3.938 kB / 417.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.4621, allocations: 12 kB / 417.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.4621, allocations: 12 kB / 417.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005686/0.4627, allocations: 270.4 kB / 417.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.4648, allocations: 1.411 MB / 419.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004313/0.4652, allocations: 218.4 kB / 419.3 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.4655, allocations: 109.2 kB / 419.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.4655, allocations: 8 kB / 419.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.4656, allocations: 42.36 kB / 419.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.4656, allocations: 0 / 419.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001709/0.4673, allocations: 0.7009 MB / 420.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.4674, allocations: 51.41 kB / 420.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/0.4678, allocations: 312.6 kB / 420.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.4678, allocations: 29.7 kB / 420.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.468, allocations: 220.1 kB / 420.8 MB, free: 5.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.882e-05/0.4681, allocations: 70.91 kB / 420.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.957e-05/0.4682, allocations: 45.7 kB / 420.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.4684, allocations: 350.8 kB / 421.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.4686, allocations: 75.97 kB / 421.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.4688, allocations: 124.2 kB / 421.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.4693, allocations: 204.1 kB / 421.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.4693, allocations: 0 / 421.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007445/0.4701, allocations: 359.5 kB / 422 MB, free: 4.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.4701, allocations: 8 kB / 422 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4701, allocations: 0 / 422 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005073/0.4706, allocations: 114.5 kB / 422.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.4709, allocations: 39.91 kB / 422.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/0.4756, allocations: 4.967 MB / 427.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.4759, allocations: 27.84 kB / 427.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.4759, allocations: 12.28 kB / 427.2 MB, free: 14.84 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.0002606/0.4762, allocations: 153.8 kB / 427.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.527e-05/0.4762, allocations: 35.56 kB / 427.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.531e-05/0.4763, allocations: 43.2 kB / 427.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4763, allocations: 7.984 kB / 427.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4763, allocations: 0 / 427.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.4764, allocations: 4 kB / 427.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.4768, allocations: 381.3 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.4769, allocations: 4 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.477, allocations: 23.92 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003278/0.4773, allocations: 110.5 kB / 427.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.4774, allocations: 8 kB / 427.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004446/0.4818, allocations: 4.959 MB / 432.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4818, allocations: 4.062 kB / 432.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007055/0.4825, allocations: 401.5 kB / 433.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.4827, allocations: 132.5 kB / 433.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.4828, allocations: 4.188 kB / 433.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.483, allocations: 27.98 kB / 433.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4831, allocations: 31.89 kB / 433.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.4831, allocations: 11.94 kB / 433.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.4834, allocations: 219.1 kB / 433.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4834, allocations: 0 / 433.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007517/0.4842, allocations: 115.8 kB / 433.8 MB, free: 7.664 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.0001896/0.4844, allocations: 103.2 kB / 433.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009917/0.4854, allocations: 0.5807 MB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4854, allocations: 128 / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.4859, allocations: 483.8 kB / 435 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004417/0.4864, allocations: 57.91 kB / 435 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.4878, allocations: 0.6276 MB / 435.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.4883, allocations: 0.7953 MB / 436.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.4884, allocations: 30.94 kB / 436.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.4885, allocations: 19.44 kB / 436.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4885, allocations: 0 / 436.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of Templates: time 0.01143/0.4999, allocations: 5.452 MB / 441.9 MB, free: 15.44 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