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.001414/0.001414, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001529/0.001529, allocations: 190 kB / 18.07 MB, free: 5.414 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.517/1.517, 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.001176/0.001176, allocations: 47.94 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1135, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005324/0.1189, allocations: 4.056 MB / 330.7 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1213, allocations: 1.115 MB / 331.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003009/0.1216, allocations: 11.94 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.1219, allocations: 71.39 kB / 331.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003282/0.1222, allocations: 138.8 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005755/0.1228, allocations: 247.8 kB / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007805/0.1236, allocations: 0.8938 MB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003768/0.124, allocations: 235.5 kB / 333.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.1244, allocations: 326.9 kB / 333.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.1248, allocations: 398.3 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.1249, allocations: 56 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.125, allocations: 56 kB / 334.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1252, allocations: 159.3 kB / 334.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003203/0.1255, allocations: 358.3 kB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008987/0.1264, allocations: 1.079 MB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1264, allocations: 0 / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1264, allocations: 0 / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1264, allocations: 0 / 335.8 MB, free: 11.68 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.002718/0.1292, allocations: 1.184 MB / 336.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1292, allocations: 12.03 kB / 336.9 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.1294, allocations: 80 kB / 337 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005603/0.13, allocations: 441.8 kB / 337.5 MB, free: 9.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.619e-05/0.13, allocations: 45.69 kB / 337.5 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1301, allocations: 52.38 kB / 337.6 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1321, allocations: 0.929 MB / 338.5 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1321, allocations: 0 / 338.5 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.1322, allocations: 24 kB / 338.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.1322, allocations: 16 kB / 338.5 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.135, allocations: 0.9757 MB / 339.5 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004598/0.1396, allocations: 3.052 MB / 342.6 MB, free: 4.586 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/0.1418, allocations: 0.9199 MB / 343.5 MB, free: 3.617 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.1432, allocations: 441.8 kB / 343.9 MB, free: 3.184 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.897e-05/0.1432, allocations: 8.422 kB / 343.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001251/0.1445, allocations: 461.1 kB / 344.4 MB, free: 2.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.226e-06/0.1445, allocations: 4 kB / 344.4 MB, free: 2.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003079/0.1476, allocations: 1.088 MB / 345.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/0.1478, allocations: 269.4 kB / 345.7 MB, free: 1.289 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007686/0.1485, allocations: 0.5095 MB / 346.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.1486, allocations: 41.7 kB / 346.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.1489, allocations: 327.6 kB / 346.6 MB, free: 408 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.149, allocations: 173.6 kB / 346.8 MB, free: 232 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.1493, allocations: 138.5 kB / 346.9 MB, free: 88 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1495, allocations: 366.7 kB / 347.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.1506, allocations: 405.7 kB / 347.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.1519, allocations: 0.6495 MB / 348.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/0.154, allocations: 0.9701 MB / 349.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.154, allocations: 0 / 349.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002847/0.1569, allocations: 1.126 MB / 350.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/0.157, allocations: 67.39 kB / 350.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.157, allocations: 8 kB / 350.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/0.157, allocations: 8 kB / 350.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.158, allocations: 228 kB / 350.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.1581, allocations: 11.94 kB / 350.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.1592, allocations: 175.1 kB / 350.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/0.1592, allocations: 32 kB / 350.9 MB, free: 11.82 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.0004025/0.1597, allocations: 213.6 kB / 351.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.1598, allocations: 59.25 kB / 351.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001511/0.1599, allocations: 65.58 kB / 351.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1599, allocations: 7.938 kB / 351.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.16, allocations: 0 / 351.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.16, allocations: 3.984 kB / 351.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00327/0.1633, allocations: 1.65 MB / 352.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1633, allocations: 4 kB / 352.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007765/0.1641, allocations: 151.8 kB / 353.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1641, allocations: 0 / 353.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/0.1641, allocations: 12 kB / 353.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/0.1641, allocations: 4 kB / 353.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1641, allocations: 0 / 353.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.1675, allocations: 1.298 MB / 354.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/0.1677, allocations: 136.3 kB / 354.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.988e-05/0.1678, allocations: 16.06 kB / 354.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007171/0.1685, allocations: 99.86 kB / 354.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.1687, allocations: 56.34 kB / 354.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.485e-05/0.1687, allocations: 20 kB / 354.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005162/0.1692, allocations: 350.8 kB / 355 MB, free: 7.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1692, allocations: 0 / 355 MB, free: 7.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000709/0.17, allocations: 171.7 kB / 355.2 MB, free: 7.43 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.0002033/0.1702, allocations: 122.3 kB / 355.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002413/0.1726, allocations: 0.9928 MB / 356.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1726, allocations: 0 / 356.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.1736, allocations: 415.1 kB / 356.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.1743, allocations: 89.81 kB / 356.8 MB, free: 5.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.177, allocations: 1.397 MB / 358.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.1776, allocations: 0.8552 MB / 359.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004377/0.1781, allocations: 80.66 kB / 359.1 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.1783, allocations: 51.42 kB / 359.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1783, allocations: 0 / 359.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of Templates: time 0.01321/0.1915, allocations: 7.455 MB / 366.6 MB, free: 11.9 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