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.001213/0.001213, allocations: 110 kB / 17.68 MB, free: 5.332 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.001257/0.001257, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.472/1.472, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 50 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1202, allocations: 49.46 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005668/0.1259, allocations: 3.469 MB / 355 MB, free: 208 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.1277, allocations: 0.7439 MB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.128, allocations: 8 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.1283, allocations: 71.28 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.1286, allocations: 134.7 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003405/0.129, allocations: 111.8 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.1295, allocations: 0.5015 MB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.1298, allocations: 147.2 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.1301, allocations: 195.2 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.1304, allocations: 203.1 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.729e-05/0.1305, allocations: 40 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.167e-05/0.1305, allocations: 40 kB / 357.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1307, allocations: 87.62 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.1309, allocations: 226.9 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.1314, allocations: 482.3 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.076e-06/0.1314, allocations: 4 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1314, allocations: 0 / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1314, allocations: 0 / 357.9 MB, free: 13.23 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.001274/0.1327, allocations: 0.7246 MB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.852e-05/0.1328, allocations: 15.89 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.1329, allocations: 44.38 kB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.1335, allocations: 315.2 kB / 359 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1335, allocations: 25.03 kB / 359 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-05/0.1336, allocations: 36.38 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006604/0.1342, allocations: 359 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1343, allocations: 0 / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.1343, allocations: 16 kB / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.1343, allocations: 8 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005705/0.1349, allocations: 270.4 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.137, allocations: 1.407 MB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.1374, allocations: 222.3 kB / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1376, allocations: 104.8 kB / 361.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.1376, allocations: 3.984 kB / 361.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1377, allocations: 46.48 kB / 361.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1377, allocations: 0 / 361.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001531/0.1392, allocations: 0.6961 MB / 362.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1393, allocations: 55.41 kB / 362.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.1396, allocations: 300.6 kB / 362.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1397, allocations: 37.7 kB / 362.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.1398, allocations: 208.1 kB / 362.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/0.1399, allocations: 74.92 kB / 362.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.875e-05/0.14, allocations: 45.7 kB / 362.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1402, allocations: 346.7 kB / 363.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.1403, allocations: 71.97 kB / 363.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.1406, allocations: 136.7 kB / 363.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/0.1409, allocations: 192.2 kB / 363.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.141, allocations: 0 / 363.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006955/0.1417, allocations: 367.4 kB / 364 MB, free: 6.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.1417, allocations: 4 kB / 364 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1417, allocations: 4 kB / 364 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.1421, allocations: 118.5 kB / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1423, allocations: 31.97 kB / 364.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004101/0.1465, allocations: 4.974 MB / 369.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.1468, allocations: 19.84 kB / 369.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.1468, allocations: 15.92 kB / 369.1 MB, free: 1.184 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 (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.0002388/0.1471, allocations: 157.8 kB / 369.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.368e-05/0.1471, allocations: 35.56 kB / 369.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.1472, allocations: 39.17 kB / 369.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1472, allocations: 4 kB / 369.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1472, allocations: 0 / 369.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1472, allocations: 0 / 369.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/0.1477, allocations: 381.2 kB / 369.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1477, allocations: 0 / 369.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.1479, allocations: 19.98 kB / 369.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/0.1482, allocations: 114.5 kB / 369.9 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1482, allocations: 4 kB / 369.9 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2826/0.4308, allocations: 4.955 MB / 374.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4309, allocations: 1.062 kB / 374.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/0.4316, allocations: 402.8 kB / 375.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.4318, allocations: 131.1 kB / 375.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.4318, allocations: 5.219 kB / 375.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.432, allocations: 21.81 kB / 375.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.4321, allocations: 29.22 kB / 375.4 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.4322, allocations: 9.078 kB / 375.4 MB, free: 21.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.4325, allocations: 217.8 kB / 375.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4325, allocations: 0 / 375.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007368/0.4332, allocations: 118.3 kB / 375.8 MB, free: 21.16 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 (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.0001409/0.4334, allocations: 109.2 kB / 375.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.4344, allocations: 0.5724 MB / 376.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.4344, allocations: 1.812 kB / 376.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000532/0.4349, allocations: 481.3 kB / 376.9 MB, free: 20.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.4354, allocations: 63.38 kB / 377 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.4368, allocations: 0.6333 MB / 377.6 MB, free: 19.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004782/0.4373, allocations: 0.7933 MB / 378.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000175/0.4375, allocations: 26.31 kB / 378.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.587e-05/0.4376, allocations: 19.56 kB / 378.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.4376, allocations: 0 / 378.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of Templates: time 0.0177/0.4553, allocations: 5.392 MB / 383.8 MB, free: 18.61 MB / 302.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/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