Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001921/0.001921, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.002072/0.002072, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.245/2.245, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 46.11 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1683, allocations: 49.44 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00676/0.1751, allocations: 4.244 MB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.1781, allocations: 1.176 MB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009789/0.1791, allocations: 8 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000618/0.1797, allocations: 79.33 kB / 355.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.1811, allocations: 150.8 kB / 355.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.1824, allocations: 291.6 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.1844, allocations: 1.019 MB / 357 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007268/0.1851, allocations: 243.3 kB / 357.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008967/0.186, allocations: 342.8 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009568/0.187, allocations: 422.2 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003201/0.1874, allocations: 60 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.1877, allocations: 60 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.188, allocations: 163.3 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000836/0.1889, allocations: 386 kB / 358.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.1903, allocations: 0.9628 MB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1903, allocations: 0 / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1903, allocations: 0 / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.02e-05/0.1904, allocations: 0 / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.005512/0.1959, allocations: 1.259 MB / 360.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.196, allocations: 8.031 kB / 360.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004237/0.1964, allocations: 84 kB / 361 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1976, allocations: 477.6 kB / 361.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.469e-05/0.1977, allocations: 49.61 kB / 361.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/0.198, allocations: 60.38 kB / 361.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003834/0.2018, allocations: 0.9594 MB / 362.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.2019, allocations: 7.938 kB / 362.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.202, allocations: 27.98 kB / 362.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.2021, allocations: 16 kB / 362.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004792/0.2069, allocations: 0.9991 MB / 363.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008421/0.2153, allocations: 3.196 MB / 366.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003761/0.2191, allocations: 0.9086 MB / 367.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.2211, allocations: 444.7 kB / 368.1 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.999e-05/0.2212, allocations: 16.42 kB / 368.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00197/0.2232, allocations: 465.1 kB / 368.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 8.366e-06/0.2232, allocations: 0 / 368.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005194/0.2284, allocations: 1.099 MB / 369.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002833/0.2287, allocations: 376.3 kB / 370 MB, free: 412 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.266/0.4948, allocations: 0.5744 MB / 370.6 MB, free: 25.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002581/0.4951, allocations: 37.72 kB / 370.6 MB, free: 25.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/0.4955, allocations: 364.6 kB / 371 MB, free: 25.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.4957, allocations: 170.7 kB / 371.2 MB, free: 25.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003957/0.4961, allocations: 137.8 kB / 371.3 MB, free: 25.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4963, allocations: 372.7 kB / 371.7 MB, free: 25.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/0.498, allocations: 405 kB / 372 MB, free: 25.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.4997, allocations: 0.6729 MB / 372.7 MB, free: 25.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002697/0.5024, allocations: 0.975 MB / 373.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.5024, allocations: 6.406 kB / 373.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003336/0.5058, allocations: 1.138 MB / 374.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.199e-05/0.5059, allocations: 67.23 kB / 374.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.5059, allocations: 5.5 kB / 374.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.207e-05/0.5059, allocations: 11 kB / 374.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.507, allocations: 221 kB / 375.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.663e-05/0.5071, allocations: 17.11 kB / 375.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.5086, allocations: 184.8 kB / 375.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001633/0.5087, allocations: 30.3 kB / 375.4 MB, free: 23.98 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.0006652/0.5094, allocations: 227.5 kB / 375.6 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.5096, allocations: 69.3 kB / 375.7 MB, free: 23.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.5098, allocations: 78.7 kB / 375.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.5098, allocations: 7 kB / 375.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.5098, allocations: 0 / 375.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.5099, allocations: 2.672 kB / 375.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.5151, allocations: 1.67 MB / 377.4 MB, free: 22.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.5152, allocations: 0.5625 kB / 377.4 MB, free: 22.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008665/0.5161, allocations: 153.7 kB / 377.6 MB, free: 22.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.5161, allocations: 5.406 kB / 377.6 MB, free: 22.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.074e-05/0.5161, allocations: 10.12 kB / 377.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.916e-06/0.5162, allocations: 2.422 kB / 377.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5162, allocations: 1.375 kB / 377.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004172/0.5203, allocations: 1.305 MB / 378.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.5207, allocations: 145.6 kB / 379 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.5209, allocations: 14.27 kB / 379 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.522, allocations: 104.5 kB / 379.1 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.5223, allocations: 51.31 kB / 379.2 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.4e-05/0.5224, allocations: 16.75 kB / 379.2 MB, free: 22.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.5234, allocations: 404.6 kB / 379.6 MB, free: 22.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5234, allocations: 0 / 379.6 MB, free: 22.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001256/0.5247, allocations: 178.1 kB / 379.8 MB, free: 21.99 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.0002542/0.525, allocations: 121.2 kB / 379.9 MB, free: 21.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.5301, allocations: 1.003 MB / 380.9 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.5301, allocations: 1 kB / 380.9 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.5324, allocations: 410 kB / 381.3 MB, free: 21.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.5339, allocations: 106.9 kB / 381.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004902/0.5388, allocations: 1.518 MB / 382.9 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005948/0.5394, allocations: 0.8817 MB / 383.8 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000627/0.5401, allocations: 58.02 kB / 383.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5401, allocations: 0 / 383.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of Templates: time 0.02632/0.5664, allocations: 9.266 MB / 393.1 MB, free: 15.43 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches