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.001163/0.001163, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001071/0.001071, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.823/1.823, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001203/0.001203, allocations: 51.94 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1211, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006248/0.1274, allocations: 3.472 MB / 330.3 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.1293, allocations: 0.7919 MB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000249/0.1296, allocations: 4 kB / 331 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.1299, allocations: 55.55 kB / 331.1 MB, free: 448 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.1303, allocations: 115 kB / 331.2 MB, free: 332 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004323/0.1307, allocations: 91.89 kB / 331.3 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007699/0.1315, allocations: 0.4939 MB / 331.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003661/0.1319, allocations: 147.2 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.1322, allocations: 187.3 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003247/0.1326, allocations: 207 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.608e-05/0.1327, allocations: 40 kB / 332.4 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.1328, allocations: 40 kB / 332.4 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.1329, allocations: 87.69 kB / 332.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.1332, allocations: 226.8 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006073/0.1338, allocations: 482.3 kB / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.1338, allocations: 0 / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1338, allocations: 4 kB / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.1339, allocations: 0 / 333.2 MB, free: 14.34 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.001516/0.1354, allocations: 0.7207 MB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.1355, allocations: 15.89 kB / 333.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.1356, allocations: 48.38 kB / 334 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.136, allocations: 307.3 kB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.136, allocations: 21.03 kB / 334.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.1361, allocations: 32.38 kB / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006506/0.1368, allocations: 363.1 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1368, allocations: 3.938 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.564e-05/0.1368, allocations: 15.94 kB / 334.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1369, allocations: 8 kB / 334.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005109/0.1374, allocations: 262.5 kB / 335 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.1394, allocations: 1.426 MB / 336.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.1399, allocations: 234.4 kB / 336.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/0.1401, allocations: 108.8 kB / 336.7 MB, free: 10.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.1401, allocations: 0 / 336.7 MB, free: 10.58 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.1402, allocations: 34.97 kB / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 8.72e-07/0.1402, allocations: 0 / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001575/0.1418, allocations: 0.7017 MB / 337.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.1418, allocations: 55.41 kB / 337.5 MB, free: 9.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003096/0.1421, allocations: 304.6 kB / 337.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1422, allocations: 25.7 kB / 337.8 MB, free: 9.363 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1423, allocations: 216.1 kB / 338 MB, free: 9.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.1424, allocations: 82.89 kB / 338.1 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.1425, allocations: 45.7 kB / 338.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1426, allocations: 338.8 kB / 338.5 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.1429, allocations: 79.95 kB / 338.6 MB, free: 8.594 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.1431, allocations: 120.2 kB / 338.7 MB, free: 8.461 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003643/0.1435, allocations: 208 kB / 338.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1435, allocations: 0 / 338.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006646/0.1441, allocations: 359.5 kB / 339.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1442, allocations: 4 kB / 339.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.1442, allocations: 0 / 339.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004337/0.1446, allocations: 118.6 kB / 339.4 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.1448, allocations: 31.92 kB / 339.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00394/0.1488, allocations: 4.967 MB / 344.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.149, allocations: 31.83 kB / 344.4 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.149, allocations: 8 kB / 344.4 MB, free: 2.297 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.0002112/0.1493, allocations: 145.8 kB / 344.6 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.1493, allocations: 35.56 kB / 344.6 MB, free: 2.109 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.758e-05/0.1494, allocations: 39.17 kB / 344.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1494, allocations: 4.281 kB / 344.6 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1494, allocations: 3.984 kB / 344.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1494, allocations: 0 / 344.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000437/0.1499, allocations: 385.1 kB / 345 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1499, allocations: 3.984 kB / 345 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.15, allocations: 19.98 kB / 345 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/0.1503, allocations: 114.4 kB / 345.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1504, allocations: 4 kB / 345.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003666/0.154, allocations: 4.97 MB / 350.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1541, allocations: 96 / 350.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.1547, allocations: 414.2 kB / 350.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.1548, allocations: 120.7 kB / 350.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1549, allocations: 8 kB / 350.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.1551, allocations: 19.98 kB / 350.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.772e-05/0.1552, allocations: 19.97 kB / 350.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1552, allocations: 19.88 kB / 350.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.1555, allocations: 219.1 kB / 350.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1555, allocations: 0 / 350.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006472/0.1561, allocations: 115.7 kB / 351 MB, free: 11.14 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.0001557/0.1563, allocations: 107.2 kB / 351.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009234/0.1572, allocations: 0.574 MB / 351.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1572, allocations: 0 / 351.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.1577, allocations: 483.7 kB / 352.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.1583, allocations: 65.8 kB / 352.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.1595, allocations: 0.7582 MB / 353 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.1599, allocations: 0.803 MB / 353.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.16, allocations: 26.97 kB / 353.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.1601, allocations: 19.44 kB / 353.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1601, allocations: 0 / 353.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of Templates: time 0.009416/0.1695, allocations: 5.24 MB / 359.1 MB, free: 2.938 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