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.001487/0.001487, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001727/0.001727, allocations: 216 kB / 23.73 MB, free: 4.164 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.531/1.531, allocations: 230.5 MB / 257.4 MB, free: 7.805 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.002081/0.002081, allocations: 63.84 kB / 378.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2654, allocations: 53.4 MB / 431.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005333/0.2707, allocations: 3.824 MB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.2734, allocations: 1.191 MB / 436.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003114/0.2737, allocations: 11.94 kB / 436.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.274, allocations: 114.8 kB / 436.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003805/0.2744, allocations: 178.3 kB / 436.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006776/0.2751, allocations: 343.5 kB / 437.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.2761, allocations: 1.085 MB / 438.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.2765, allocations: 182.8 kB / 438.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004266/0.2769, allocations: 414.8 kB / 439 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.2774, allocations: 406.2 kB / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.2776, allocations: 120 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.2777, allocations: 120 kB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.2779, allocations: 227.3 kB / 439.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003794/0.2783, allocations: 370.5 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001221/0.2795, allocations: 1.236 MB / 441.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.2796, allocations: 8 kB / 441.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2796, allocations: 0 / 441.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.2796, allocations: 0 / 441.4 MB, free: 12.71 MB / 350.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.002965/0.2825, allocations: 1.195 MB / 442.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2826, allocations: 11.98 kB / 442.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.2827, allocations: 88.42 kB / 442.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/0.2835, allocations: 432.1 kB / 443.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.132e-05/0.2836, allocations: 41.69 kB / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.2837, allocations: 56.38 kB / 443.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.2861, allocations: 1.274 MB / 444.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.2861, allocations: 11.94 kB / 444.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.2862, allocations: 20 kB / 444.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/0.2862, allocations: 16 kB / 444.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.2892, allocations: 0.9991 MB / 445.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00496/0.2942, allocations: 2.826 MB / 448.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.2965, allocations: 0.7424 MB / 449.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.2978, allocations: 417.8 kB / 449.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.2978, allocations: 20.31 kB / 449.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.2992, allocations: 469.2 kB / 450 MB, free: 3.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.105e-06/0.2992, allocations: 4 kB / 450 MB, free: 3.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003356/0.3025, allocations: 1.096 MB / 451.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002666/0.3028, allocations: 372.3 kB / 451.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008446/0.3037, allocations: 0.5377 MB / 452 MB, free: 1.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.911e-05/0.3037, allocations: 41.64 kB / 452 MB, free: 1.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.304, allocations: 380.3 kB / 452.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3042, allocations: 178.5 kB / 452.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000266/0.3045, allocations: 146.6 kB / 452.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002831/0.3048, allocations: 370.8 kB / 453.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.3061, allocations: 461.1 kB / 453.5 MB, free: 92 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.3079, allocations: 1.033 MB / 454.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.3104, allocations: 0.9713 MB / 455.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.3104, allocations: 4 kB / 455.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003154/0.3135, allocations: 1.194 MB / 456.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/0.3136, allocations: 69.89 kB / 456.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.3136, allocations: 8.281 kB / 456.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.3137, allocations: 12 kB / 456.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.3147, allocations: 219.6 kB / 457 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-05/0.3148, allocations: 11.94 kB / 457.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.316, allocations: 187.2 kB / 457.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-05/0.3161, allocations: 36 kB / 457.3 MB, free: 12 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.0004552/0.3165, allocations: 225.6 kB / 457.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.3167, allocations: 67.56 kB / 457.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.3169, allocations: 69.94 kB / 457.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.3169, allocations: 4 kB / 457.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.3169, allocations: 0 / 457.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.3169, allocations: 0 / 457.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004668/0.3216, allocations: 1.454 MB / 459.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3216, allocations: 0 / 459.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.3228, allocations: 155.7 kB / 459.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.3228, allocations: 4 kB / 459.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/0.3229, allocations: 15.98 kB / 459.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3229, allocations: 0 / 459.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.3229, allocations: 4 kB / 459.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005273/0.3281, allocations: 1.296 MB / 460.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.3284, allocations: 67.53 kB / 460.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.3286, allocations: 16 kB / 460.6 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.3298, allocations: 103.9 kB / 460.7 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.33, allocations: 48.36 kB / 460.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/0.33, allocations: 19.98 kB / 460.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008698/0.3309, allocations: 366.8 kB / 461.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3309, allocations: 0 / 461.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009414/0.3318, allocations: 187.7 kB / 461.3 MB, free: 7.863 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.0002149/0.3321, allocations: 123 kB / 461.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003747/0.3358, allocations: 1.024 MB / 462.5 MB, free: 6.672 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.3358, allocations: 4.312 kB / 462.5 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.3373, allocations: 390.2 kB / 462.9 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008701/0.3382, allocations: 106.2 kB / 463 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.3416, allocations: 1.25 MB / 464.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.342, allocations: 284.4 kB / 464.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005563/0.3425, allocations: 80.66 kB / 464.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.3428, allocations: 55.42 kB / 464.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3428, allocations: 0 / 464.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of Templates: time 0.02582/0.3686, allocations: 9.492 MB / 474.1 MB, free: 11.1 MB / 382.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.059851009398699]