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.001124/0.001124, allocations: 114.7 kB / 17.28 MB, free: 6.219 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.001267/0.001267, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.754/1.754, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001207/0.001207, allocations: 55.91 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005348/0.1148, allocations: 4.06 MB / 330.8 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.1168, allocations: 1.115 MB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.117, allocations: 8 kB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.1172, allocations: 67.41 kB / 332 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003041/0.1175, allocations: 138.8 kB / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.118, allocations: 247.8 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008612/0.1188, allocations: 0.968 MB / 333.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.1192, allocations: 278.5 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.1196, allocations: 374.9 kB / 334 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004393/0.1201, allocations: 438.4 kB / 334.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.1202, allocations: 112 kB / 334.5 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1204, allocations: 112 kB / 334.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.1206, allocations: 215.4 kB / 334.9 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004108/0.121, allocations: 418.1 kB / 335.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.1222, allocations: 1.137 MB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1222, allocations: 0 / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1222, allocations: 0 / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1222, allocations: 0 / 336.4 MB, free: 11.12 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.002974/0.1252, allocations: 1.188 MB / 337.6 MB, free: 9.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1253, allocations: 8.031 kB / 337.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.1254, allocations: 76 kB / 337.7 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.126, allocations: 437.9 kB / 338.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/0.1261, allocations: 41.69 kB / 338.2 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.1262, allocations: 56.31 kB / 338.2 MB, free: 9.219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.1281, allocations: 0.9251 MB / 339.1 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.1282, allocations: 8 kB / 339.1 MB, free: 8.219 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.1282, allocations: 24 kB / 339.2 MB, free: 8.195 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1283, allocations: 16 kB / 339.2 MB, free: 8.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/0.1309, allocations: 0.9717 MB / 340.1 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004295/0.1352, allocations: 3.052 MB / 343.2 MB, free: 4.027 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002167/0.1374, allocations: 0.92 MB / 344.1 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.1385, allocations: 437.9 kB / 344.5 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.237e-05/0.1386, allocations: 12.44 kB / 344.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.1399, allocations: 461 kB / 345 MB, free: 2.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 4.078e-06/0.1399, allocations: 4 kB / 345 MB, free: 2.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.002971/0.1429, allocations: 1.084 MB / 346.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001449/0.1431, allocations: 281.4 kB / 346.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.1438, allocations: 0.5056 MB / 346.9 MB, free: 212 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.1438, allocations: 37.7 kB / 346.9 MB, free: 168 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.1441, allocations: 339.7 kB / 347.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1442, allocations: 165.6 kB / 347.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.1445, allocations: 138.5 kB / 347.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1446, allocations: 366.8 kB / 347.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.1457, allocations: 401.7 kB / 348.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.1469, allocations: 0.6533 MB / 348.9 MB, free: 14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002171/0.1491, allocations: 0.9701 MB / 349.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.1491, allocations: 0 / 349.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002713/0.1518, allocations: 1.126 MB / 351 MB, free: 11.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.489e-05/0.152, allocations: 63.39 kB / 351.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.152, allocations: 8.406 kB / 351.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.152, allocations: 12 kB / 351.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009723/0.153, allocations: 223.6 kB / 351.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.153, allocations: 15.92 kB / 351.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.154, allocations: 175.1 kB / 351.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.499e-05/0.1541, allocations: 35.98 kB / 351.6 MB, free: 11.25 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.0003137/0.1544, allocations: 213.6 kB / 351.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.876e-05/0.1545, allocations: 59.25 kB / 351.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.1546, allocations: 65.58 kB / 351.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1547, allocations: 7.938 kB / 351.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.1547, allocations: 0 / 351.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.1547, allocations: 11.92 kB / 351.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.1577, allocations: 1.646 MB / 353.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.1577, allocations: 4 kB / 353.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007166/0.1584, allocations: 143.8 kB / 353.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.1584, allocations: 3.938 kB / 353.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.1585, allocations: 11.98 kB / 353.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1585, allocations: 8 kB / 353.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1585, allocations: 0 / 353.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003018/0.1615, allocations: 1.286 MB / 355 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.1618, allocations: 144.2 kB / 355.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.921e-05/0.1619, allocations: 16 kB / 355.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000722/0.1626, allocations: 103.9 kB / 355.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.1628, allocations: 48.38 kB / 355.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/0.1628, allocations: 19.98 kB / 355.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.1634, allocations: 350.8 kB / 355.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1634, allocations: 0 / 355.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008329/0.1643, allocations: 171.7 kB / 355.9 MB, free: 6.867 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.0002178/0.1645, allocations: 119.1 kB / 356 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.167, allocations: 1.012 MB / 357 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.167, allocations: 0 / 357 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009829/0.168, allocations: 423 kB / 357.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.1686, allocations: 92.94 kB / 357.5 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.1709, allocations: 1.399 MB / 358.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.1714, allocations: 0.8588 MB / 359.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000409/0.1718, allocations: 80.64 kB / 359.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.172, allocations: 47.44 kB / 359.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.172, allocations: 4 kB / 359.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of Templates: time 0.01289/0.1849, allocations: 7.825 MB / 367.7 MB, free: 10.93 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