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.0008157/0.0008158, allocations: 100.3 kB / 16.95 MB, free: 6.453 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.00082/0.0008202, allocations: 183.4 kB / 17.84 MB, free: 6.004 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.542/1.542, allocations: 205.4 MB / 224 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.0005167/0.0005168, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 47.59 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003748/0.1131, allocations: 3.46 MB / 331.8 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1151, allocations: 1.088 MB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.1154, allocations: 11.94 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.1156, allocations: 63.47 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.1159, allocations: 138.8 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.1164, allocations: 167.7 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007411/0.1171, allocations: 0.8431 MB / 334.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.1174, allocations: 203.9 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.1178, allocations: 303 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.1182, allocations: 366.6 kB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.537e-05/0.1183, allocations: 48 kB / 335 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.312e-05/0.1184, allocations: 48 kB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1185, allocations: 135.5 kB / 335.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.1186, allocations: 153.4 kB / 335.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006582/0.1193, allocations: 0.865 MB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1193, allocations: 0 / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1193, allocations: 0 / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1193, allocations: 0 / 336.2 MB, free: 12.17 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.002384/0.1217, allocations: 1.161 MB / 337.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1218, allocations: 8.031 kB / 337.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1219, allocations: 79.16 kB / 337.5 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.1224, allocations: 428.8 kB / 337.9 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.466e-05/0.1225, allocations: 45.27 kB / 337.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.1226, allocations: 56 kB / 338 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.1248, allocations: 1.002 MB / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1249, allocations: 0 / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.071e-05/0.1249, allocations: 24 kB / 339 MB, free: 9.207 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.125, allocations: 12 kB / 339 MB, free: 9.195 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002793/0.1278, allocations: 1.128 MB / 340.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004749/0.1325, allocations: 3.134 MB / 343.3 MB, free: 4.801 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002351/0.1349, allocations: 1.03 MB / 344.3 MB, free: 3.723 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.1361, allocations: 498.2 kB / 344.8 MB, free: 3.234 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.927e-05/0.1362, allocations: 24.56 kB / 344.8 MB, free: 3.211 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.1375, allocations: 0.5088 MB / 345.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.266e-06/0.1375, allocations: 0 / 345.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003112/0.1406, allocations: 1.252 MB / 346.6 MB, free: 1.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/0.1408, allocations: 273.5 kB / 346.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008064/0.1417, allocations: 0.5055 MB / 347.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.1417, allocations: 37.7 kB / 347.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002864/0.142, allocations: 339.6 kB / 347.7 MB, free: 212 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.1422, allocations: 165.6 kB / 347.9 MB, free: 44 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.1423, allocations: 19.94 kB / 347.9 MB, free: 24 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.1425, allocations: 362.8 kB / 348.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.1436, allocations: 457.7 kB / 348.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.1449, allocations: 0.7081 MB / 349.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.1461, allocations: 0.5285 MB / 349.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.1461, allocations: 0 / 349.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002934/0.1491, allocations: 1.236 MB / 351.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.493e-05/0.1492, allocations: 63.39 kB / 351.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.1492, allocations: 7.938 kB / 351.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.737e-05/0.1492, allocations: 12 kB / 351.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.1503, allocations: 247.9 kB / 351.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.1503, allocations: 19.94 kB / 351.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.1513, allocations: 223 kB / 351.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.308e-05/0.1514, allocations: 32 kB / 351.8 MB, free: 12 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003957/0.1518, allocations: 209.6 kB / 352 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.459e-05/0.1519, allocations: 59.34 kB / 352 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.1521, allocations: 61.58 kB / 352.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.1521, allocations: 12 kB / 352.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1521, allocations: 0 / 352.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.1522, allocations: 3.984 kB / 352.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003954/0.1561, allocations: 1.759 MB / 353.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1561, allocations: 4 kB / 353.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.1572, allocations: 179.8 kB / 354 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/0.1573, allocations: 7.953 kB / 354 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.016e-05/0.1573, allocations: 8 kB / 354.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.1573, allocations: 4 kB / 354.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1573, allocations: 0 / 354.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004771/0.1621, allocations: 1.466 MB / 355.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.1624, allocations: 140.4 kB / 355.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.1626, allocations: 19.95 kB / 355.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.1637, allocations: 135.9 kB / 355.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.1639, allocations: 64.33 kB / 355.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-05/0.164, allocations: 16 kB / 355.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000901/0.1649, allocations: 346.8 kB / 356.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1649, allocations: 0 / 356.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001069/0.166, allocations: 171.7 kB / 356.4 MB, free: 7.254 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002501/0.1663, allocations: 111.2 kB / 356.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003605/0.1699, allocations: 1.115 MB / 357.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.1699, allocations: 0 / 357.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.1714, allocations: 470.4 kB / 358.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.1723, allocations: 89.86 kB / 358.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.1761, allocations: 1.421 MB / 359.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/0.1766, allocations: 0.8591 MB / 360.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006679/0.1773, allocations: 72.66 kB / 360.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.1776, allocations: 55.42 kB / 360.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of SimCode: time 2.024e-06/0.1776, allocations: 0 / 360.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Templates: time 0.0201/0.1977, allocations: 7.134 MB / 367.7 MB, free: 11.86 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