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.0008583/0.0008585, allocations: 102.7 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 199.8 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002836, allocations: 4 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1451, allocations: 51.52 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004433/0.1496, allocations: 3.008 MB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.151, allocations: 0.8224 MB / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1512, allocations: 4 kB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1514, allocations: 47.61 kB / 362.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.1516, allocations: 119 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.1519, allocations: 99.8 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.1523, allocations: 469.8 kB / 363.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.1526, allocations: 110.6 kB / 363.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.1528, allocations: 167.4 kB / 363.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.1531, allocations: 183.1 kB / 363.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.428e-05/0.1531, allocations: 20 kB / 363.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.324e-05/0.1532, allocations: 28 kB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.1533, allocations: 63.69 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.064e-05/0.1534, allocations: 101.5 kB / 363.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.1538, allocations: 355 kB / 364.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1538, allocations: 0 / 364.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1538, allocations: 0 / 364.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1538, allocations: 4 kB / 364.2 MB, free: 8.047 MB / 302.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.001044/0.1548, allocations: 0.6738 MB / 364.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.1549, allocations: 8.031 kB / 364.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.1552, allocations: 79.41 kB / 364.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.1556, allocations: 314.2 kB / 365.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.1557, allocations: 32.59 kB / 365.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.1557, allocations: 28 kB / 365.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.1564, allocations: 362.7 kB / 365.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1564, allocations: 0 / 365.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.1564, allocations: 12 kB / 365.7 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1564, allocations: 12 kB / 365.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005574/0.157, allocations: 278.4 kB / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1589, allocations: 1.442 MB / 367.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.1594, allocations: 226.4 kB / 367.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.1596, allocations: 116.8 kB / 367.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1596, allocations: 0 / 367.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1597, allocations: 38.55 kB / 367.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.172e-06/0.1597, allocations: 3.938 kB / 367.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00144/0.1611, allocations: 0.7173 MB / 368.5 MB, free: 3.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.1612, allocations: 59.41 kB / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.1615, allocations: 308.5 kB / 368.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1615, allocations: 33.7 kB / 368.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.1617, allocations: 216.1 kB / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.1617, allocations: 66.92 kB / 369.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.489e-05/0.1618, allocations: 8 kB / 369.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1619, allocations: 342.8 kB / 369.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.1621, allocations: 91.95 kB / 369.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1623, allocations: 128.2 kB / 369.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.1625, allocations: 87.98 kB / 369.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1626, allocations: 0 / 369.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007351/0.1633, allocations: 379.5 kB / 370.2 MB, free: 1.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1633, allocations: 8 kB / 370.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1633, allocations: 0 / 370.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.1638, allocations: 122.4 kB / 370.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.164, allocations: 35.97 kB / 370.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2418/0.4058, allocations: 4.438 MB / 374.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.4061, allocations: 27.28 kB / 374.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.4061, allocations: 10 kB / 374.8 MB, free: 15.7 MB / 302.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 (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.0001818/0.4063, allocations: 160.6 kB / 375 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.234e-05/0.4064, allocations: 33.2 kB / 375 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.681e-05/0.4064, allocations: 36.19 kB / 375 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.4065, allocations: 2.094 kB / 375 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4065, allocations: 1.781 kB / 375 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4065, allocations: 5.156 kB / 375.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004439/0.4069, allocations: 377.8 kB / 375.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.4069, allocations: 0.7031 kB / 375.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.4071, allocations: 23.12 kB / 375.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003387/0.4074, allocations: 118.9 kB / 375.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.4074, allocations: 5.547 kB / 375.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.4104, allocations: 4.438 MB / 380 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4104, allocations: 4.641 kB / 380 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005847/0.411, allocations: 416.2 kB / 380.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.4111, allocations: 126.7 kB / 380.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.4111, allocations: 5.156 kB / 380.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.4114, allocations: 27.44 kB / 380.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.4114, allocations: 27.41 kB / 380.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.4115, allocations: 7.484 kB / 380.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002493/0.4117, allocations: 220 kB / 380.8 MB, free: 11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4117, allocations: 0 / 380.8 MB, free: 11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007393/0.4125, allocations: 113.6 kB / 380.9 MB, free: 11 MB / 302.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 (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.000143/0.4126, allocations: 108.3 kB / 381 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.4135, allocations: 0.5834 MB / 381.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4135, allocations: 0 / 381.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006319/0.4142, allocations: 487.4 kB / 382.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000485/0.4147, allocations: 64.11 kB / 382.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.416, allocations: 0.7673 MB / 382.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.4163, allocations: 0.7948 MB / 383.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.4164, allocations: 24.62 kB / 383.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.4165, allocations: 20.55 kB / 383.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4165, allocations: 0 / 383.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of Templates: time 0.01068/0.4272, allocations: 4.726 MB / 388.5 MB, free: 8.574 MB / 302.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