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.00124/0.001241, allocations: 110.2 kB / 18.25 MB, free: 4.77 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.001219/0.001219, allocations: 195.3 kB / 19.19 MB, free: 3.844 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.469/1.469, allocations: 205.1 MB / 225 MB, free: 12.33 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.001395/0.001395, allocations: 52.41 kB / 281.3 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1006, allocations: 46.64 MB / 327.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005771/0.1064, allocations: 4.039 MB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.109, allocations: 1.119 MB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000573/0.1096, allocations: 11.94 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.11, allocations: 95.02 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006939/0.1108, allocations: 170.4 kB / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.1115, allocations: 287.6 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.1127, allocations: 0.9563 MB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004518/0.1132, allocations: 274.6 kB / 334.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005478/0.1137, allocations: 382.9 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006457/0.1144, allocations: 442.3 kB / 335.7 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.1147, allocations: 112 kB / 335.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.1149, allocations: 116 kB / 335.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.1151, allocations: 207.5 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005081/0.1156, allocations: 422.1 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001118/0.1168, allocations: 1.13 MB / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1168, allocations: 0 / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1168, allocations: 0 / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.607e-05/0.1169, allocations: 4 kB / 337.7 MB, free: 10.71 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.003327/0.1202, allocations: 1.184 MB / 338.8 MB, free: 9.465 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1202, allocations: 8.031 kB / 338.9 MB, free: 9.457 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.1205, allocations: 76 kB / 338.9 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.1211, allocations: 441.8 kB / 339.4 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.1212, allocations: 45.62 kB / 339.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1213, allocations: 56.38 kB / 339.5 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002246/0.1236, allocations: 0.929 MB / 340.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1236, allocations: 0 / 340.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.1237, allocations: 20 kB / 340.4 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.1237, allocations: 16 kB / 340.4 MB, free: 7.781 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.1267, allocations: 0.9679 MB / 341.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005133/0.1319, allocations: 3.067 MB / 344.5 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.1344, allocations: 0.9121 MB / 345.4 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.1357, allocations: 437.9 kB / 345.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.703e-05/0.1358, allocations: 16.58 kB / 345.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.1371, allocations: 461.1 kB / 346.3 MB, free: 1.742 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.247e-06/0.1371, allocations: 3.938 kB / 346.3 MB, free: 1.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003447/0.1406, allocations: 1.084 MB / 347.4 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.1407, allocations: 273.4 kB / 347.6 MB, free: 328 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008507/0.1416, allocations: 0.5056 MB / 348.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.559e-05/0.1417, allocations: 37.7 kB / 348.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/0.142, allocations: 335.6 kB / 348.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.1422, allocations: 169.6 kB / 348.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.1425, allocations: 138.5 kB / 348.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1427, allocations: 366.8 kB / 349.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.1439, allocations: 405.7 kB / 349.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.1453, allocations: 0.6532 MB / 350.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00244/0.1478, allocations: 0.9701 MB / 351.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.1478, allocations: 4 kB / 351.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003152/0.151, allocations: 1.123 MB / 352.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.936e-05/0.1511, allocations: 63.39 kB / 352.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.1511, allocations: 8.078 kB / 352.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.1511, allocations: 8 kB / 352.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.1522, allocations: 227.7 kB / 352.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.305e-05/0.1522, allocations: 23.91 kB / 352.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.1534, allocations: 171.1 kB / 352.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-05/0.1535, allocations: 35.98 kB / 352.8 MB, free: 10.84 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.0003807/0.1539, allocations: 213.6 kB / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.1541, allocations: 59.25 kB / 353.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001756/0.1543, allocations: 65.58 kB / 353.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.1543, allocations: 15.94 kB / 353.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.1543, allocations: 0 / 353.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1543, allocations: 3.984 kB / 353.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.1579, allocations: 1.65 MB / 354.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1579, allocations: 0 / 354.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000819/0.1587, allocations: 147.8 kB / 355 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.1587, allocations: 4 kB / 355 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-05/0.1588, allocations: 15.98 kB / 355 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1588, allocations: 0 / 355 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1588, allocations: 0 / 355 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003521/0.1623, allocations: 1.294 MB / 356.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.1626, allocations: 140.2 kB / 356.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.1628, allocations: 12 kB / 356.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008246/0.1636, allocations: 103.9 kB / 356.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.1638, allocations: 52.38 kB / 356.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.1638, allocations: 15.98 kB / 356.6 MB, free: 6.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000621/0.1644, allocations: 346.9 kB / 356.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1645, allocations: 0 / 356.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007705/0.1652, allocations: 183.7 kB / 357.1 MB, free: 6.453 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.0001947/0.1654, allocations: 115.2 kB / 357.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.1684, allocations: 1.012 MB / 358.2 MB, free: 5.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.1685, allocations: 0.875 kB / 358.2 MB, free: 5.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.1696, allocations: 410.2 kB / 358.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007364/0.1704, allocations: 96.94 kB / 358.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.1731, allocations: 1.205 MB / 359.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.1736, allocations: 0.8588 MB / 360.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.174, allocations: 59.44 kB / 360.9 MB, free: 2.617 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.174, allocations: 0 / 360.9 MB, free: 2.617 MB / 302.1 MB Notification: Performance of Templates: time 0.01596/0.1899, allocations: 8.624 MB / 369.5 MB, free: 9.984 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches