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.007469/0.007469, allocations: 105.9 kB / 21.98 MB, free: 5.223 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.002337/0.002337, allocations: 216.4 kB / 25.29 MB, free: 3.203 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.455/1.455, allocations: 230.6 MB / 259 MB, free: 8.023 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.002052/0.002052, allocations: 63.89 kB / 379.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2774, allocations: 53.36 MB / 433.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006215/0.2836, allocations: 4.288 MB / 437.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.2862, allocations: 1.23 MB / 438.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003538/0.2866, allocations: 11.94 kB / 438.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.2869, allocations: 102.9 kB / 438.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003948/0.2873, allocations: 190.3 kB / 439 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007271/0.288, allocations: 331.6 kB / 439.3 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2891, allocations: 1.085 MB / 440.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.2895, allocations: 199.1 kB / 440.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005253/0.29, allocations: 422.8 kB / 441 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000598/0.2906, allocations: 466.2 kB / 441.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.2908, allocations: 116 kB / 441.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.291, allocations: 120 kB / 441.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.2912, allocations: 227.3 kB / 441.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004233/0.2916, allocations: 450 kB / 442.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.2929, allocations: 1.227 MB / 443.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2929, allocations: 3.938 kB / 443.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2929, allocations: 0 / 443.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2929, allocations: 0 / 443.6 MB, free: 12.48 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.002855/0.2957, allocations: 1.202 MB / 444.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2958, allocations: 12.03 kB / 444.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.2959, allocations: 84.42 kB / 444.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007385/0.2967, allocations: 432.1 kB / 445.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.651e-05/0.2967, allocations: 41.69 kB / 445.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.2968, allocations: 60.38 kB / 445.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.299, allocations: 0.9645 MB / 446.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.299, allocations: 4 kB / 446.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.818e-05/0.2991, allocations: 28 kB / 446.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.2991, allocations: 15.94 kB / 446.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002737/0.3019, allocations: 1.011 MB / 447.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004937/0.3068, allocations: 3.141 MB / 450.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002173/0.309, allocations: 0.7388 MB / 451.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.3101, allocations: 423.7 kB / 451.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.043e-05/0.3102, allocations: 24.56 kB / 451.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.3113, allocations: 465 kB / 452.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.905e-06/0.3113, allocations: 0 / 452.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003159/0.3145, allocations: 1.092 MB / 453.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002244/0.3147, allocations: 376.3 kB / 453.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009221/0.3156, allocations: 0.5771 MB / 454.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.2e-05/0.3157, allocations: 41.7 kB / 454.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.316, allocations: 376.5 kB / 454.6 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.3162, allocations: 182.5 kB / 454.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.3165, allocations: 134.6 kB / 454.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.3167, allocations: 378.8 kB / 455.3 MB, free: 340 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.3178, allocations: 405.6 kB / 455.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.3192, allocations: 0.6772 MB / 456.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.3214, allocations: 0.9713 MB / 457.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3214, allocations: 3.938 kB / 457.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002892/0.3243, allocations: 1.147 MB / 458.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.162e-05/0.3244, allocations: 59.41 kB / 458.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.3244, allocations: 11.98 kB / 458.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.3244, allocations: 8 kB / 458.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3254, allocations: 223.8 kB / 458.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.3254, allocations: 15.98 kB / 458.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.3265, allocations: 195.1 kB / 459 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/0.3266, allocations: 32 kB / 459 MB, free: 12.34 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.0004148/0.327, allocations: 217.6 kB / 459.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.3271, allocations: 67.58 kB / 459.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.3273, allocations: 78.39 kB / 459.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3273, allocations: 4 kB / 459.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.3273, allocations: 4 kB / 459.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3273, allocations: 0 / 459.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003407/0.3308, allocations: 1.645 MB / 461.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3308, allocations: 0 / 461.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007646/0.3315, allocations: 155.8 kB / 461.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3315, allocations: 0 / 461.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.743e-05/0.3316, allocations: 15.98 kB / 461.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.3316, allocations: 7.938 kB / 461.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3316, allocations: 3.938 kB / 461.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003208/0.3348, allocations: 1.303 MB / 462.5 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.3349, allocations: 75.47 kB / 462.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.335, allocations: 12 kB / 462.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007278/0.3358, allocations: 107.9 kB / 462.7 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3359, allocations: 52.3 kB / 462.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.336, allocations: 15.98 kB / 462.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006294/0.3366, allocations: 398.8 kB / 463.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3366, allocations: 0 / 463.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006578/0.3372, allocations: 183.8 kB / 463.4 MB, free: 7.945 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.0001877/0.3374, allocations: 119.1 kB / 463.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002508/0.3399, allocations: 0.9621 MB / 464.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3399, allocations: 0 / 464.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.341, allocations: 394.2 kB / 464.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.3416, allocations: 109.6 kB / 464.9 MB, free: 6.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.3442, allocations: 1.284 MB / 466.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000516/0.3447, allocations: 0.8785 MB / 467.1 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.345, allocations: 67.42 kB / 467.2 MB, free: 4.059 MB / 366.1 MB Notification: Performance of SimCode: time 1.623e-06/0.345, allocations: 0 / 467.2 MB, free: 4.059 MB / 366.1 MB Notification: Performance of Templates: time 0.01558/0.3606, allocations: 9.349 MB / 476.5 MB, free: 10.74 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/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-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.691726557910442]