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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008295/0.0008297, allocations: 96.22 kB / 17.3 MB, free: 6.344 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.0009731/0.000973, allocations: 178.5 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.803/1.803, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007059/0.0007058, allocations: 12 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1223, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003729/0.1261, allocations: 3.095 MB / 332.1 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.1277, allocations: 0.7802 MB / 332.8 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.1279, allocations: 4 kB / 332.8 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.1281, allocations: 51.61 kB / 332.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1284, allocations: 115 kB / 333 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.1287, allocations: 95.89 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005477/0.1293, allocations: 485.7 kB / 333.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.1296, allocations: 119.9 kB / 333.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.1298, allocations: 167.2 kB / 333.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.1301, allocations: 187.1 kB / 334 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.1302, allocations: 20 kB / 334.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.531e-05/0.1303, allocations: 20 kB / 334.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.1303, allocations: 67.62 kB / 334.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1306, allocations: 228.6 kB / 334.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.131, allocations: 450.2 kB / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.131, allocations: 0 / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.131, allocations: 0 / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1311, allocations: 4 kB / 334.8 MB, free: 13.86 MB / 286.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.001106/0.1322, allocations: 0.6624 MB / 335.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1322, allocations: 8.031 kB / 335.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.1323, allocations: 48.38 kB / 335.5 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.1327, allocations: 315.2 kB / 335.8 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.1327, allocations: 21.03 kB / 335.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/0.1328, allocations: 32.38 kB / 335.9 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.1334, allocations: 367 kB / 336.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1335, allocations: 0 / 336.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.64e-05/0.1335, allocations: 16 kB / 336.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.1335, allocations: 11.98 kB / 336.3 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005453/0.1341, allocations: 286.4 kB / 336.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.136, allocations: 1.434 MB / 338 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.1364, allocations: 230.5 kB / 338.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.1367, allocations: 108.8 kB / 338.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.1367, allocations: 7.938 kB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.1367, allocations: 38.97 kB / 338.4 MB, free: 10.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.352e-06/0.1367, allocations: 3.938 kB / 338.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001564/0.1383, allocations: 0.7213 MB / 339.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1384, allocations: 55.41 kB / 339.1 MB, free: 9.215 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.1387, allocations: 312.5 kB / 339.4 MB, free: 8.902 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.1387, allocations: 29.7 kB / 339.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1389, allocations: 204.2 kB / 339.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/0.139, allocations: 78.91 kB / 339.7 MB, free: 8.582 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.139, allocations: 29.7 kB / 339.8 MB, free: 8.547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1392, allocations: 334.8 kB / 340.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.1394, allocations: 91.89 kB / 340.2 MB, free: 8.121 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1396, allocations: 128.2 kB / 340.3 MB, free: 7.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/0.14, allocations: 212.1 kB / 340.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.14, allocations: 7.938 kB / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006871/0.1407, allocations: 367.5 kB / 340.9 MB, free: 7.375 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1408, allocations: 4 kB / 340.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.1408, allocations: 0 / 340.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004165/0.1412, allocations: 122.5 kB / 341 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.1414, allocations: 35.97 kB / 341.1 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/0.1448, allocations: 4.453 MB / 345.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1451, allocations: 31.77 kB / 345.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1451, allocations: 4 kB / 345.5 MB, free: 2.316 MB / 286.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.0001968/0.1453, allocations: 157.8 kB / 345.7 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.1454, allocations: 39.61 kB / 345.7 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.517e-05/0.1455, allocations: 31.17 kB / 345.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1455, allocations: 4 kB / 345.8 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1455, allocations: 96 / 345.8 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1455, allocations: 3.984 kB / 345.8 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004076/0.1459, allocations: 381.3 kB / 346.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1459, allocations: 0 / 346.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.146, allocations: 23.98 kB / 346.2 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003087/0.1464, allocations: 114.5 kB / 346.3 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1464, allocations: 8 kB / 346.3 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/0.1496, allocations: 4.457 MB / 350.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1496, allocations: 0 / 350.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006028/0.1502, allocations: 426.2 kB / 351.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1503, allocations: 120.7 kB / 351.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.1504, allocations: 8.281 kB / 351.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.1506, allocations: 23.98 kB / 351.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.403e-05/0.1507, allocations: 23.97 kB / 351.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.1507, allocations: 19.92 kB / 351.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1509, allocations: 215.1 kB / 351.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1509, allocations: 0 / 351.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006449/0.1516, allocations: 111.8 kB / 351.7 MB, free: 11.67 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.0001434/0.1517, allocations: 107.2 kB / 351.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008655/0.1526, allocations: 0.5856 MB / 352.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1526, allocations: 0 / 352.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004883/0.1531, allocations: 491.9 kB / 352.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.1536, allocations: 60.98 kB / 352.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.1548, allocations: 0.7842 MB / 353.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1552, allocations: 0.7951 MB / 354.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1553, allocations: 27.02 kB / 354.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.1554, allocations: 19.44 kB / 354.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1554, allocations: 3.938 kB / 354.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Templates: time 0.008806/0.1642, allocations: 4.852 MB / 359.4 MB, free: 3.828 MB / 302.1 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