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.001355/0.001355, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001502/0.001502, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.00165/0.00165, allocations: 55.86 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2631, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005521/0.2686, allocations: 3.833 MB / 436.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.2709, allocations: 1.183 MB / 437.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002698/0.2711, allocations: 11.94 kB / 437.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.2714, allocations: 106.9 kB / 437.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003646/0.2718, allocations: 186.3 kB / 437.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.2724, allocations: 335.6 kB / 438 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.2736, allocations: 1.089 MB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003357/0.2739, allocations: 187.1 kB / 439.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004731/0.2744, allocations: 410.8 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000517/0.2749, allocations: 406.2 kB / 440 MB, free: 15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.275, allocations: 120 kB / 440.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.2752, allocations: 120 kB / 440.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.2754, allocations: 219.4 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003877/0.2758, allocations: 374.5 kB / 440.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.2771, allocations: 1.237 MB / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2771, allocations: 0 / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2771, allocations: 0 / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.2771, allocations: 4 kB / 442.1 MB, free: 12.94 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.002948/0.2801, allocations: 1.202 MB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2801, allocations: 8.031 kB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.2803, allocations: 88.42 kB / 443.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007713/0.2811, allocations: 432 kB / 443.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.305e-05/0.2811, allocations: 45.69 kB / 443.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.2812, allocations: 60.36 kB / 443.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.2836, allocations: 1.27 MB / 445.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2837, allocations: 0 / 445.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/0.2837, allocations: 31.98 kB / 445.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.2838, allocations: 16 kB / 445.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003118/0.2869, allocations: 0.9952 MB / 446.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005025/0.2919, allocations: 2.826 MB / 449.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.2943, allocations: 0.7394 MB / 449.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.2956, allocations: 421.9 kB / 450.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.2957, allocations: 16.36 kB / 450.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.2969, allocations: 469.2 kB / 450.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.2969, allocations: 0 / 450.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003423/0.3004, allocations: 1.096 MB / 451.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002313/0.3006, allocations: 376.3 kB / 452.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008398/0.3014, allocations: 0.5416 MB / 452.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-05/0.3015, allocations: 37.7 kB / 452.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.3018, allocations: 372.3 kB / 453.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.302, allocations: 182.5 kB / 453.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/0.3022, allocations: 142.6 kB / 453.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3024, allocations: 366.8 kB / 453.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.3037, allocations: 461.1 kB / 454.2 MB, free: 332 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.3055, allocations: 1.036 MB / 455.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.308, allocations: 0.9829 MB / 456.2 MB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.308, allocations: 0 / 456.2 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003104/0.3111, allocations: 1.197 MB / 457.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.841e-05/0.3112, allocations: 67.39 kB / 457.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.3112, allocations: 8 kB / 457.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.3112, allocations: 8 kB / 457.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3123, allocations: 223.9 kB / 457.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.183e-05/0.3123, allocations: 15.98 kB / 457.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/0.3134, allocations: 183.2 kB / 457.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.534e-05/0.3135, allocations: 32 kB / 458 MB, free: 12.23 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.0003442/0.3138, allocations: 225.6 kB / 458.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.3139, allocations: 71.55 kB / 458.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.3141, allocations: 65.95 kB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3141, allocations: 4 kB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3141, allocations: 3.984 kB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3141, allocations: 0 / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.3175, allocations: 1.458 MB / 459.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3175, allocations: 4 kB / 459.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008158/0.3183, allocations: 151.7 kB / 459.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.3183, allocations: 0 / 459.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.3183, allocations: 11.98 kB / 459.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.3184, allocations: 4 kB / 460 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3184, allocations: 0 / 460 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003481/0.3218, allocations: 1.303 MB / 461.3 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.322, allocations: 67.53 kB / 461.3 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.493e-05/0.322, allocations: 12 kB / 461.3 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007905/0.3228, allocations: 103.9 kB / 461.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.323, allocations: 52.34 kB / 461.5 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/0.323, allocations: 16 kB / 461.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005577/0.3236, allocations: 366.8 kB / 461.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3236, allocations: 3.938 kB / 461.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006195/0.3242, allocations: 187.7 kB / 462 MB, free: 8.078 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.0001547/0.3243, allocations: 119.1 kB / 462.2 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.327, allocations: 1.019 MB / 463.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3271, allocations: 1.125 kB / 463.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3282, allocations: 390.2 kB / 463.6 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.3288, allocations: 98.25 kB / 463.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.3313, allocations: 1.276 MB / 464.9 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.3316, allocations: 284.4 kB / 465.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.3319, allocations: 67.42 kB / 465.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3319, allocations: 0 / 465.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of Templates: time 0.01412/0.346, allocations: 9.346 MB / 474.6 MB, free: 11.42 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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: 7.573068053927273]