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.001075/0.001075, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001083/0.001083, allocations: 198 kB / 18.07 MB, free: 5.41 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.63/1.63, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001738/0.001739, allocations: 51.92 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1436, allocations: 46.62 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004842/0.1485, allocations: 3.484 MB / 330.1 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.15, allocations: 0.788 MB / 330.9 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1502, allocations: 7.938 kB / 330.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.1505, allocations: 47.61 kB / 330.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.1507, allocations: 119 kB / 331 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1511, allocations: 91.92 kB / 331.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.1515, allocations: 489.7 kB / 331.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.1518, allocations: 111.9 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.152, allocations: 171.3 kB / 331.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.1522, allocations: 199 kB / 332.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.534e-05/0.1523, allocations: 24 kB / 332.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.1524, allocations: 24 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.49e-05/0.1525, allocations: 87.66 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1527, allocations: 202.9 kB / 332.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003809/0.153, allocations: 470.3 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1531, allocations: 0 / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1531, allocations: 0 / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.1531, allocations: 0 / 332.9 MB, free: 14.57 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.00119/0.1543, allocations: 0.7206 MB / 333.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1543, allocations: 8.031 kB / 333.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.481e-05/0.1544, allocations: 52.38 kB / 333.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.1548, allocations: 303.3 kB / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.1549, allocations: 21.03 kB / 334 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.1549, allocations: 32.38 kB / 334 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.1556, allocations: 363 kB / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1556, allocations: 0 / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.982e-05/0.1556, allocations: 23.98 kB / 334.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1557, allocations: 8 kB / 334.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/0.1562, allocations: 266.4 kB / 334.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.1582, allocations: 1.426 MB / 336.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.1587, allocations: 218.5 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.1589, allocations: 108.8 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.1589, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.159, allocations: 42.97 kB / 336.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.159, allocations: 0 / 336.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001619/0.1606, allocations: 0.6939 MB / 337.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.1607, allocations: 59.41 kB / 337.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.161, allocations: 304.6 kB / 337.5 MB, free: 9.645 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.161, allocations: 33.7 kB / 337.5 MB, free: 9.605 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1612, allocations: 208.1 kB / 337.7 MB, free: 9.395 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.1613, allocations: 78.89 kB / 337.8 MB, free: 9.316 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.1614, allocations: 45.7 kB / 337.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1616, allocations: 346.8 kB / 338.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1618, allocations: 79.95 kB / 338.3 MB, free: 8.84 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.162, allocations: 120.2 kB / 338.4 MB, free: 8.707 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.1624, allocations: 208 kB / 338.6 MB, free: 8.488 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1624, allocations: 0 / 338.6 MB, free: 8.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006931/0.1631, allocations: 355.5 kB / 338.9 MB, free: 8.125 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.1631, allocations: 4 kB / 338.9 MB, free: 8.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1631, allocations: 8.062 kB / 338.9 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/0.1636, allocations: 110.8 kB / 339 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.1638, allocations: 39.91 kB / 339.1 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003659/0.1675, allocations: 4.449 MB / 343.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.1677, allocations: 31.7 kB / 343.6 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.1677, allocations: 8 kB / 343.6 MB, free: 3.066 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.0002045/0.1679, allocations: 149.7 kB / 343.7 MB, free: 2.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.168, allocations: 31.62 kB / 343.7 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.616e-05/0.1681, allocations: 39.17 kB / 343.8 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1681, allocations: 8.062 kB / 343.8 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1681, allocations: 3.984 kB / 343.8 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1681, allocations: 96 / 343.8 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.1686, allocations: 377.2 kB / 344.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1686, allocations: 7.969 kB / 344.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1687, allocations: 15.98 kB / 344.2 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003372/0.169, allocations: 118.4 kB / 344.3 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1691, allocations: 8 kB / 344.3 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003451/0.1725, allocations: 4.445 MB / 348.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1726, allocations: 0 / 348.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.1732, allocations: 402.4 kB / 349.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.1734, allocations: 124.7 kB / 349.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.1734, allocations: 8 kB / 349.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1736, allocations: 19.98 kB / 349.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.1737, allocations: 23.97 kB / 349.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.1738, allocations: 7.984 kB / 349.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.174, allocations: 215.1 kB / 349.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.174, allocations: 0 / 349.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006861/0.1747, allocations: 119.7 kB / 349.7 MB, free: 12.46 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.0001626/0.1749, allocations: 111.2 kB / 349.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009154/0.1758, allocations: 0.5623 MB / 350.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1758, allocations: 4 kB / 350.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000509/0.1763, allocations: 483.8 kB / 350.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005242/0.1768, allocations: 61.5 kB / 350.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1781, allocations: 0.7732 MB / 351.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.1785, allocations: 0.7951 MB / 352.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.1786, allocations: 27.02 kB / 352.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.148e-05/0.1787, allocations: 19.44 kB / 352.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1787, allocations: 0 / 352.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of Templates: time 0.009384/0.1881, allocations: 4.912 MB / 357.4 MB, free: 4.594 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