Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.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.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007907/0.0007911, allocations: 96.2 kB / 17.3 MB, free: 6.395 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.001102/0.001102, allocations: 180.2 kB / 18.21 MB, free: 5.551 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.515/1.515, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004921/0.0004922, allocations: 12.52 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 47.59 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004528/0.1132, allocations: 3.651 MB / 332.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1156, allocations: 1.107 MB / 333.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.116, allocations: 15.94 kB / 333.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.1163, allocations: 67.45 kB / 333.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.1167, allocations: 138.9 kB / 333.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.1173, allocations: 251.7 kB / 334.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008879/0.1182, allocations: 0.8899 MB / 335.1 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003693/0.1186, allocations: 231.5 kB / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.1189, allocations: 306.9 kB / 335.6 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004179/0.1193, allocations: 374.4 kB / 336 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.733e-05/0.1194, allocations: 52 kB / 336 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.138e-05/0.1195, allocations: 48 kB / 336.1 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1197, allocations: 143.4 kB / 336.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003422/0.12, allocations: 363.9 kB / 336.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009472/0.121, allocations: 1.051 MB / 337.6 MB, free: 11.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.121, allocations: 0 / 337.6 MB, free: 11.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.121, allocations: 0 / 337.6 MB, free: 11.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.121, allocations: 0 / 337.6 MB, free: 11.07 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002687/0.1237, allocations: 1.15 MB / 338.8 MB, free: 9.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.1238, allocations: 12.03 kB / 338.8 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.1239, allocations: 72.09 kB / 338.8 MB, free: 9.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.1247, allocations: 441.8 kB / 339.3 MB, free: 9.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.1247, allocations: 41.69 kB / 339.3 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.1249, allocations: 52.38 kB / 339.4 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.1274, allocations: 1.011 MB / 340.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1274, allocations: 4 kB / 340.4 MB, free: 8.125 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.1275, allocations: 31.94 kB / 340.4 MB, free: 8.094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.1276, allocations: 16 kB / 340.4 MB, free: 8.078 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003013/0.1306, allocations: 1.132 MB / 341.6 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.1353, allocations: 3.134 MB / 344.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/0.1378, allocations: 1.033 MB / 345.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.1391, allocations: 493.9 kB / 346.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.1391, allocations: 16.41 kB / 346.2 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.1405, allocations: 0.5204 MB / 346.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.995e-06/0.1405, allocations: 0 / 346.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003407/0.1439, allocations: 1.26 MB / 348 MB, free: 308 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002037/0.1441, allocations: 269.4 kB / 348.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007597/0.1449, allocations: 0.5096 MB / 348.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/0.145, allocations: 37.7 kB / 348.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.1453, allocations: 335.5 kB / 349.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.1454, allocations: 169.6 kB / 349.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1456, allocations: 61.62 kB / 349.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1457, allocations: 366.8 kB / 349.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.1471, allocations: 461.7 kB / 350.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.1487, allocations: 0.712 MB / 350.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.1513, allocations: 1.083 MB / 352 MB, free: 12.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.1513, allocations: 4 kB / 352 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003161/0.1544, allocations: 1.244 MB / 353.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.408e-05/0.1545, allocations: 67.47 kB / 353.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.1545, allocations: 8 kB / 353.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.541e-05/0.1546, allocations: 8 kB / 353.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1556, allocations: 255.6 kB / 353.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.1556, allocations: 8 kB / 353.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.1568, allocations: 223.1 kB / 353.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.497e-05/0.1569, allocations: 32 kB / 353.8 MB, free: 10.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003482/0.1572, allocations: 217.6 kB / 354 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.1573, allocations: 55.34 kB / 354.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.1575, allocations: 61.59 kB / 354.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1575, allocations: 7.938 kB / 354.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.1575, allocations: 0 / 354.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1575, allocations: 7.984 kB / 354.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003545/0.1611, allocations: 1.771 MB / 355.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1611, allocations: 3.938 kB / 355.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007938/0.1619, allocations: 179.8 kB / 356.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.85e-06/0.1619, allocations: 0 / 356.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.162, allocations: 12 kB / 356.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.162, allocations: 7.938 kB / 356.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.162, allocations: 0 / 356.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.1656, allocations: 1.462 MB / 357.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.1658, allocations: 144.2 kB / 357.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.385e-05/0.1659, allocations: 12 kB / 357.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000824/0.1667, allocations: 147.9 kB / 357.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.1669, allocations: 48.38 kB / 357.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.1669, allocations: 19.98 kB / 357.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005531/0.1675, allocations: 350.9 kB / 358.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1675, allocations: 0 / 358.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006537/0.1681, allocations: 167.7 kB / 358.5 MB, free: 5.414 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002511/0.1684, allocations: 115.2 kB / 358.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.1713, allocations: 1.114 MB / 359.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1713, allocations: 4 kB / 359.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.1724, allocations: 475.1 kB / 360.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.173, allocations: 89.8 kB / 360.2 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.1755, allocations: 1.483 MB / 361.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.176, allocations: 0.8552 MB / 362.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004115/0.1765, allocations: 84.59 kB / 362.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.1767, allocations: 39.44 kB / 362.7 MB, free: 1.078 MB / 302.1 MB Notification: Performance of SimCode: time 1.804e-06/0.1767, allocations: 4 kB / 362.7 MB, free: 1.074 MB / 302.1 MB Notification: Performance of Templates: time 0.01361/0.1903, allocations: 7.394 MB / 370.1 MB, free: 9.684 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches