Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001716/0.001716, allocations: 119.3 kB / 21.18 MB, free: 0.6289 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.002223/0.002223, allocations: 206.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 230.4 MB / 258.1 MB, free: 8.141 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 75.81 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2958, allocations: 53.31 MB / 432.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006039/0.3019, allocations: 4.292 MB / 436.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.3044, allocations: 1.219 MB / 437.6 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.3047, allocations: 15.94 kB / 437.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.305, allocations: 102.9 kB / 437.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000403/0.3054, allocations: 182.3 kB / 437.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000717/0.3061, allocations: 339.5 kB / 438.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.3073, allocations: 1.085 MB / 439.3 MB, free: 144 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003644/0.3076, allocations: 190.6 kB / 439.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004813/0.3081, allocations: 410.8 kB / 439.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005638/0.3087, allocations: 458.3 kB / 440.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.3088, allocations: 127.9 kB / 440.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.309, allocations: 120 kB / 440.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.3092, allocations: 227.3 kB / 440.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004396/0.3096, allocations: 450 kB / 441.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.3109, allocations: 1.224 MB / 442.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3109, allocations: 0 / 442.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3109, allocations: 0 / 442.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.3109, allocations: 0 / 442.4 MB, free: 12.96 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.003059/0.314, allocations: 1.285 MB / 443.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.314, allocations: 8.031 kB / 443.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.3142, allocations: 88.42 kB / 443.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.3149, allocations: 485.9 kB / 444.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.315, allocations: 45.69 kB / 444.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3151, allocations: 60.38 kB / 444.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.3174, allocations: 0.9684 MB / 445.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3174, allocations: 0 / 445.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.241e-05/0.3175, allocations: 24 kB / 445.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.3175, allocations: 20 kB / 445.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003019/0.3205, allocations: 0.9952 MB / 446.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005172/0.3257, allocations: 3.208 MB / 449.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.3281, allocations: 0.8897 MB / 450.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3293, allocations: 421.8 kB / 450.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.931e-05/0.3294, allocations: 16.56 kB / 450.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.3306, allocations: 465.1 kB / 451.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.435e-06/0.3306, allocations: 0 / 451.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003408/0.334, allocations: 1.1 MB / 452.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002468/0.3343, allocations: 372.3 kB / 452.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008809/0.3352, allocations: 0.581 MB / 453.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.67e-05/0.3352, allocations: 37.7 kB / 453.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.3355, allocations: 372.5 kB / 453.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.3357, allocations: 186.5 kB / 454 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.336, allocations: 138.6 kB / 454.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.3362, allocations: 370.8 kB / 454.5 MB, free: 412 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.3374, allocations: 409.7 kB / 454.9 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3388, allocations: 0.6733 MB / 455.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.3412, allocations: 0.9662 MB / 456.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3412, allocations: 7.938 kB / 456.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003016/0.3442, allocations: 1.142 MB / 457.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.169e-05/0.3443, allocations: 62.5 kB / 457.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3443, allocations: 12 kB / 457.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.3443, allocations: 15.94 kB / 457.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.3454, allocations: 223.6 kB / 458 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.3454, allocations: 11.94 kB / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.3465, allocations: 195.2 kB / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.756e-05/0.3465, allocations: 35.98 kB / 458.2 MB, free: 12.42 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.0003481/0.3469, allocations: 225.5 kB / 458.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.347, allocations: 71.58 kB / 458.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.3472, allocations: 70.41 kB / 458.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.3472, allocations: 4 kB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3472, allocations: 0 / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3472, allocations: 7.984 kB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003447/0.3506, allocations: 1.681 MB / 460.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3506, allocations: 3.984 kB / 460.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007875/0.3514, allocations: 143.8 kB / 460.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.3514, allocations: 4 kB / 460.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.3515, allocations: 12 kB / 460.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3515, allocations: 4 kB / 460.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3515, allocations: 3.984 kB / 460.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003353/0.3548, allocations: 1.303 MB / 461.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.355, allocations: 148.6 kB / 461.9 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.3551, allocations: 15.94 kB / 461.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007625/0.3558, allocations: 107.9 kB / 462 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.356, allocations: 52.31 kB / 462.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.356, allocations: 15.98 kB / 462.1 MB, free: 8.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005729/0.3566, allocations: 402.8 kB / 462.5 MB, free: 8.062 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3566, allocations: 0 / 462.5 MB, free: 8.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006035/0.3572, allocations: 183.8 kB / 462.7 MB, free: 7.883 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.000179/0.3574, allocations: 119.2 kB / 462.8 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.3599, allocations: 0.9652 MB / 463.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3599, allocations: 0 / 463.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.361, allocations: 391.3 kB / 464.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.3616, allocations: 106.2 kB / 464.2 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.3641, allocations: 1.29 MB / 465.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.3646, allocations: 0.8902 MB / 466.4 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.3648, allocations: 67.36 kB / 466.5 MB, free: 3.977 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3648, allocations: 0 / 466.5 MB, free: 3.977 MB / 366.1 MB Notification: Performance of Templates: time 0.0159/0.3807, allocations: 9.355 MB / 475.8 MB, free: 10.65 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.8019287046045065]