Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001782/0.001782, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002342/0.002342, allocations: 201 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.582/1.582, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 51.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2602, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005615/0.2658, allocations: 3.833 MB / 435.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.2681, allocations: 1.176 MB / 436.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000264/0.2684, allocations: 15.94 kB / 436.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002552/0.2686, allocations: 106.9 kB / 436.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003814/0.269, allocations: 190.2 kB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006533/0.2697, allocations: 339.6 kB / 437.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.2708, allocations: 1.089 MB / 438.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000365/0.2711, allocations: 197.6 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004709/0.2716, allocations: 418.8 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005301/0.2721, allocations: 462.2 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.2723, allocations: 120 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.2725, allocations: 116 kB / 439.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.2727, allocations: 231.3 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.2731, allocations: 378.4 kB / 440.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.2744, allocations: 1.23 MB / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2744, allocations: 0 / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2744, allocations: 4 kB / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.2744, allocations: 3.984 kB / 441.4 MB, free: 12.82 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.002905/0.2773, allocations: 1.198 MB / 442.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2773, allocations: 8.031 kB / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.2775, allocations: 92.42 kB / 442.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007857/0.2783, allocations: 428 kB / 443.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.2783, allocations: 49.69 kB / 443.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.2784, allocations: 56.36 kB / 443.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.2808, allocations: 1.274 MB / 444.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.2808, allocations: 4 kB / 444.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.109e-05/0.2809, allocations: 24 kB / 444.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.281, allocations: 16 kB / 444.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/0.2838, allocations: 0.9991 MB / 445.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.2887, allocations: 2.825 MB / 448.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.291, allocations: 0.7413 MB / 449.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.2922, allocations: 413.9 kB / 449.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.748e-05/0.2922, allocations: 20.36 kB / 449.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001236/0.2935, allocations: 461.2 kB / 450 MB, free: 3.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.178e-06/0.2935, allocations: 4 kB / 450 MB, free: 3.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003451/0.2969, allocations: 1.1 MB / 451.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002391/0.2971, allocations: 376.2 kB / 451.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007975/0.2979, allocations: 0.5338 MB / 452 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/0.298, allocations: 41.7 kB / 452.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.2983, allocations: 376.3 kB / 452.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.2985, allocations: 174.5 kB / 452.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.2988, allocations: 154.6 kB / 452.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.299, allocations: 366.7 kB / 453.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.3003, allocations: 461.1 kB / 453.5 MB, free: 212 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.302, allocations: 1.036 MB / 454.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002399/0.3044, allocations: 0.9713 MB / 455.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.3044, allocations: 8 kB / 455.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003079/0.3074, allocations: 1.197 MB / 456.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.316e-05/0.3075, allocations: 63.69 kB / 456.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.3075, allocations: 15.98 kB / 456.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.3076, allocations: 8 kB / 456.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.3089, allocations: 215.6 kB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.947e-05/0.3089, allocations: 15.92 kB / 457.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.3107, allocations: 195.2 kB / 457.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3108, allocations: 28 kB / 457.3 MB, free: 12.11 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.0005579/0.3113, allocations: 225.6 kB / 457.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3115, allocations: 67.56 kB / 457.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3118, allocations: 69.94 kB / 457.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.3118, allocations: 4 kB / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.3118, allocations: 0 / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.3118, allocations: 3.984 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005123/0.3169, allocations: 1.458 MB / 459.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3169, allocations: 4 kB / 459.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.3181, allocations: 147.8 kB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.3181, allocations: 4 kB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-05/0.3182, allocations: 8 kB / 459.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.3182, allocations: 0 / 459.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.3182, allocations: 11.98 kB / 459.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.3236, allocations: 1.296 MB / 460.6 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002801/0.3238, allocations: 67.53 kB / 460.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.324, allocations: 16 kB / 460.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.3252, allocations: 103.9 kB / 460.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3254, allocations: 52.34 kB / 460.8 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-05/0.3254, allocations: 12 kB / 460.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008775/0.3263, allocations: 370.8 kB / 461.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3263, allocations: 0 / 461.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001098/0.3274, allocations: 187.7 kB / 461.4 MB, free: 7.961 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.0002316/0.3277, allocations: 115.1 kB / 461.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004058/0.3317, allocations: 1.024 MB / 462.5 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3317, allocations: 4.062 kB / 462.5 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001778/0.3335, allocations: 394.2 kB / 462.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3345, allocations: 98.23 kB / 463 MB, free: 6.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.3384, allocations: 1.251 MB / 464.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.3388, allocations: 284.4 kB / 464.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006305/0.3395, allocations: 80.66 kB / 464.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.3398, allocations: 47.44 kB / 464.6 MB, free: 4.59 MB / 366.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3398, allocations: 0 / 464.6 MB, free: 4.59 MB / 366.1 MB Notification: Performance of Templates: time 0.02582/0.3656, allocations: 9.706 MB / 474.4 MB, free: 11.01 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.082713990006596]