Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001833/0.001833, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002378/0.002378, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.656/1.656, allocations: 230.2 MB / 254.5 MB, free: 15.44 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003144/0.003144, allocations: 67.88 kB / 373.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1652, allocations: 53.32 MB / 427.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008498/0.1737, allocations: 4.272 MB / 431.4 MB, free: 324 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003363/0.1771, allocations: 1.219 MB / 432.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.1774, allocations: 12 kB / 432.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003699/0.1778, allocations: 106.9 kB / 432.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005811/0.1784, allocations: 182.3 kB / 432.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009791/0.1794, allocations: 327.5 kB / 433.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001682/0.181, allocations: 1.097 MB / 434.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005033/0.1815, allocations: 194.6 kB / 434.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007098/0.1823, allocations: 410.8 kB / 435 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000799/0.1831, allocations: 458.2 kB / 435.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.1833, allocations: 120 kB / 435.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.1835, allocations: 120 kB / 435.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002957/0.1838, allocations: 227.3 kB / 435.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.1844, allocations: 450.1 kB / 436.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.1863, allocations: 1.222 MB / 437.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1863, allocations: 4 kB / 437.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1863, allocations: 0 / 437.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.1863, allocations: 0 / 437.5 MB, free: 10.2 MB / 366.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.004732/0.191, allocations: 1.285 MB / 438.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1911, allocations: 11.97 kB / 438.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.1914, allocations: 88.42 kB / 438.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1925, allocations: 474 kB / 439.4 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-05/0.1925, allocations: 45.69 kB / 439.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001945/0.1927, allocations: 64.36 kB / 439.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004088/0.1968, allocations: 0.9684 MB / 440.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.1968, allocations: 0 / 440.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.197, allocations: 28 kB / 440.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.197, allocations: 16 kB / 440.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005105/0.2021, allocations: 1.003 MB / 441.5 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008656/0.2108, allocations: 3.2 MB / 444.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004099/0.2149, allocations: 0.8881 MB / 445.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002349/0.2172, allocations: 421.8 kB / 446 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-05/0.2173, allocations: 16.58 kB / 446 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002239/0.2195, allocations: 469 kB / 446.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 4.96e-06/0.2196, allocations: 0 / 446.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.2129/0.4325, allocations: 1.093 MB / 447.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.4326, allocations: 374.4 kB / 447.9 MB, free: 24.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.4339, allocations: 0.5729 MB / 448.5 MB, free: 24.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.434, allocations: 41.8 kB / 448.5 MB, free: 24.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.4343, allocations: 375.6 kB / 448.9 MB, free: 24.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.4345, allocations: 182.5 kB / 449.1 MB, free: 23.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003441/0.4348, allocations: 138.2 kB / 449.2 MB, free: 23.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4349, allocations: 372.5 kB / 449.6 MB, free: 23.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.4367, allocations: 406.3 kB / 450 MB, free: 23.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/0.4385, allocations: 0.6723 MB / 450.7 MB, free: 23.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002507/0.441, allocations: 0.9725 MB / 451.6 MB, free: 22.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.441, allocations: 11.28 kB / 451.6 MB, free: 22.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003012/0.444, allocations: 1.141 MB / 452.8 MB, free: 22.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.09e-05/0.4441, allocations: 67.23 kB / 452.8 MB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.4441, allocations: 6.375 kB / 452.9 MB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/0.4442, allocations: 10.28 kB / 452.9 MB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.4452, allocations: 219.2 kB / 453.1 MB, free: 22.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/0.4452, allocations: 15.88 kB / 453.1 MB, free: 22.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.4464, allocations: 185.3 kB / 453.3 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-05/0.4465, allocations: 35.98 kB / 453.3 MB, free: 22.43 MB / 366.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.0003368/0.4468, allocations: 230 kB / 453.5 MB, free: 22.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.4469, allocations: 72.94 kB / 453.6 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.4471, allocations: 74.44 kB / 453.7 MB, free: 22.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.4471, allocations: 5.156 kB / 453.7 MB, free: 22.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.4471, allocations: 5.094 kB / 453.7 MB, free: 22.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.4471, allocations: 2.719 kB / 453.7 MB, free: 22.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.4505, allocations: 1.67 MB / 455.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4505, allocations: 0 / 455.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007787/0.4513, allocations: 162 kB / 455.5 MB, free: 21.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.4513, allocations: 2.812 kB / 455.5 MB, free: 21.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.943e-05/0.4514, allocations: 9.938 kB / 455.5 MB, free: 21.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.4514, allocations: 2.094 kB / 455.5 MB, free: 21.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.4514, allocations: 0 / 455.5 MB, free: 21.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.4548, allocations: 1.304 MB / 456.8 MB, free: 20.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.455, allocations: 150.5 kB / 457 MB, free: 20.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4551, allocations: 13.5 kB / 457 MB, free: 20.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000807/0.4559, allocations: 106.7 kB / 457.1 MB, free: 20.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.4561, allocations: 47.64 kB / 457.1 MB, free: 20.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.4561, allocations: 15.77 kB / 457.2 MB, free: 20.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000578/0.4567, allocations: 406.6 kB / 457.6 MB, free: 20.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4567, allocations: 0 / 457.6 MB, free: 20.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006563/0.4573, allocations: 176.3 kB / 457.7 MB, free: 20.46 MB / 366.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.0001517/0.4575, allocations: 118.2 kB / 457.8 MB, free: 20.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002617/0.4601, allocations: 0.9649 MB / 458.8 MB, free: 19.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4601, allocations: 0 / 458.8 MB, free: 19.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.4612, allocations: 398.2 kB / 459.2 MB, free: 19.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.4619, allocations: 107.5 kB / 459.3 MB, free: 19.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.4644, allocations: 1.266 MB / 460.6 MB, free: 19.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.4649, allocations: 0.8797 MB / 461.4 MB, free: 18.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005101/0.4654, allocations: 83.08 kB / 461.5 MB, free: 18.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002312/0.4656, allocations: 53.11 kB / 461.6 MB, free: 18.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4656, allocations: 1.406 kB / 461.6 MB, free: 18.41 MB / 366.1 MB Notification: Performance of Templates: time 0.01664/0.4823, allocations: 8.928 MB / 470.5 MB, free: 15.87 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.226208847016096]