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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 166.8 kB / 25.03 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 158.6 MB / 186.8 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.936e-05/4.069e-05, allocations: 6.25 kB / 250.4 MB, free: 7.82 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006187/0.006227, allocations: 3.923 MB / 254.3 MB, free: 3.871 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.008839, allocations: 1.107 MB / 255.4 MB, free: 2.758 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.009178, allocations: 11.94 kB / 255.4 MB, free: 2.746 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002799/0.009457, allocations: 95.02 kB / 255.5 MB, free: 2.652 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004734/0.009931, allocations: 182.3 kB / 255.7 MB, free: 2.473 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007116/0.01064, allocations: 291.5 kB / 256 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.01193, allocations: 0.9912 MB / 257 MB, free: 1.188 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003702/0.0123, allocations: 183.1 kB / 257.1 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007663/0.01307, allocations: 0.5459 MB / 257.7 MB, free: 468 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005239/0.01359, allocations: 355.1 kB / 258 MB, free: 112 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.01377, allocations: 112 kB / 258.1 MB, free: 0 / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.01396, allocations: 116 kB / 258.3 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.01418, allocations: 211.3 kB / 258.5 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.01456, allocations: 299.4 kB / 258.8 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.01611, allocations: 1.227 MB / 260 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.01611, allocations: 0 / 260 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.01611, allocations: 0 / 260 MB, free: 14.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.01613, allocations: 0 / 260 MB, free: 14.16 MB / 250.7 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.002801/0.01893, allocations: 1.2 MB / 261.2 MB, free: 12.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.01898, allocations: 15.98 kB / 261.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.01923, allocations: 120.5 kB / 261.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/0.01991, allocations: 398.2 kB / 261.7 MB, free: 12.36 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.01997, allocations: 45.69 kB / 261.8 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.02008, allocations: 56.38 kB / 261.8 MB, free: 12.26 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.02219, allocations: 1.141 MB / 262.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.02221, allocations: 192 / 262.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.711e-05/0.02229, allocations: 27.94 kB / 263 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.02231, allocations: 12 kB / 263 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002272/0.02458, allocations: 0.8197 MB / 263.8 MB, free: 10.12 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005331/0.02991, allocations: 3.412 MB / 267.2 MB, free: 6.586 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001872/0.03178, allocations: 0.6493 MB / 267.9 MB, free: 5.922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009975/0.03278, allocations: 373 kB / 268.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.777e-05/0.03285, allocations: 16.48 kB / 268.3 MB, free: 5.539 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.03389, allocations: 427.7 kB / 268.7 MB, free: 5.105 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.524e-06/0.03389, allocations: 0 / 268.7 MB, free: 5.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.002754/0.03665, allocations: 0.9574 MB / 269.6 MB, free: 4.141 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002073/0.03685, allocations: 269.5 kB / 269.9 MB, free: 3.816 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009658/0.03782, allocations: 0.6548 MB / 270.5 MB, free: 3.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.052e-05/0.03789, allocations: 37.7 kB / 270.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003773/0.03827, allocations: 427.3 kB / 271 MB, free: 2.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.03847, allocations: 190.5 kB / 271.2 MB, free: 2.492 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004477/0.03892, allocations: 168.2 kB / 271.3 MB, free: 2.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004013/0.03932, allocations: 0.582 MB / 271.9 MB, free: 1.727 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.04034, allocations: 405.2 kB / 272.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.04189, allocations: 0.9765 MB / 273.3 MB, free: 132 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.04401, allocations: 0.9904 MB / 274.3 MB, free: 15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.04401, allocations: 0 / 274.3 MB, free: 15 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002741/0.04675, allocations: 1.112 MB / 275.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.04683, allocations: 67.39 kB / 275.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.04685, allocations: 8 kB / 275.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.04688, allocations: 8.406 kB / 275.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.0478, allocations: 203.7 kB / 275.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.04783, allocations: 15.94 kB / 275.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008236/0.04865, allocations: 119.5 kB / 275.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.162e-05/0.04872, allocations: 31.98 kB / 275.8 MB, free: 13.41 MB / 266.7 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.0003625/0.04908, allocations: 268.3 kB / 276.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.04922, allocations: 71.62 kB / 276.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.0494, allocations: 65.5 kB / 276.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.0494, allocations: 8 kB / 276.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.04941, allocations: 0 / 276.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.04941, allocations: 0 / 276.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.05252, allocations: 1.502 MB / 277.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.05253, allocations: 0 / 277.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006825/0.05321, allocations: 119.8 kB / 277.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.05321, allocations: 0 / 277.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/0.05326, allocations: 12 kB / 277.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.05327, allocations: 4 kB / 277.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.05328, allocations: 3.938 kB / 277.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002835/0.05611, allocations: 1.22 MB / 279.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.05624, allocations: 59.53 kB / 279.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.05635, allocations: 16.03 kB / 279.2 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.0569, allocations: 55.94 kB / 279.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.05707, allocations: 64.36 kB / 279.3 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.05711, allocations: 11.98 kB / 279.3 MB, free: 9.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005789/0.05769, allocations: 414.8 kB / 279.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05769, allocations: 0 / 279.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000631/0.05832, allocations: 175.7 kB / 279.9 MB, free: 9.293 MB / 266.7 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.0001832/0.05851, allocations: 115.2 kB / 280 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.06067, allocations: 0.9793 MB / 281 MB, free: 8.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.06067, allocations: 0 / 281 MB, free: 8.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.06157, allocations: 380.3 kB / 281.4 MB, free: 7.781 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005641/0.06213, allocations: 105.8 kB / 281.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.06466, allocations: 1.123 MB / 282.6 MB, free: 6.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.06495, allocations: 263.2 kB / 282.8 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003588/0.0653, allocations: 76.53 kB / 282.9 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.06553, allocations: 60.42 kB / 283 MB, free: 6.098 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.06553, allocations: 0 / 283 MB, free: 6.098 MB / 266.7 MB Notification: Performance of Templates: time 0.01622/0.08174, allocations: 8.26 MB / 291.2 MB, free: 13.87 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.5839728330029175]