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.001705/0.001705, allocations: 109.1 kB / 21.18 MB, free: 0.7578 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.002042/0.002042, allocations: 209.1 kB / 24.49 MB, free: 4.148 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.501/1.501, allocations: 230.5 MB / 258.1 MB, free: 8.016 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.002058/0.002058, allocations: 55.91 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2418, allocations: 53.41 MB / 432.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006089/0.2479, allocations: 4.284 MB / 436.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.251, allocations: 1.226 MB / 438 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005818/0.2515, allocations: 8 kB / 438 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000416/0.252, allocations: 118.8 kB / 438.1 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006317/0.2526, allocations: 186.3 kB / 438.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.2534, allocations: 327.6 kB / 438.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.2549, allocations: 1.093 MB / 439.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003993/0.2553, allocations: 199.1 kB / 439.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006331/0.2559, allocations: 414.8 kB / 440.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007124/0.2566, allocations: 462.3 kB / 440.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002522/0.2569, allocations: 120 kB / 440.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.2571, allocations: 116 kB / 441 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.2573, allocations: 227.3 kB / 441.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005838/0.2579, allocations: 458 kB / 441.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.2593, allocations: 1.22 MB / 442.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2593, allocations: 7.938 kB / 442.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2593, allocations: 0 / 442.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.05e-05/0.2594, allocations: 4 kB / 442.9 MB, free: 12.28 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.003541/0.2629, allocations: 1.198 MB / 444.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.263, allocations: 8.031 kB / 444.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.2632, allocations: 92.42 kB / 444.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008218/0.264, allocations: 424 kB / 444.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.717e-05/0.2641, allocations: 49.62 kB / 444.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.2642, allocations: 56.38 kB / 444.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.2665, allocations: 0.9709 MB / 445.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.2666, allocations: 3.938 kB / 445.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/0.2666, allocations: 31.98 kB / 445.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.2667, allocations: 16 kB / 445.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00295/0.2696, allocations: 0.9991 MB / 446.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005083/0.2747, allocations: 3.145 MB / 449.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.2769, allocations: 0.7497 MB / 450.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/0.2781, allocations: 425.7 kB / 451 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.175e-05/0.2781, allocations: 12.58 kB / 451 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.2793, allocations: 465.1 kB / 451.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.2793, allocations: 0 / 451.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003208/0.2825, allocations: 1.1 MB / 452.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002171/0.2828, allocations: 376.2 kB / 452.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008555/0.2836, allocations: 0.577 MB / 453.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.29e-05/0.2837, allocations: 41.7 kB / 453.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.284, allocations: 376.5 kB / 453.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.2842, allocations: 178.5 kB / 454.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.2844, allocations: 146.6 kB / 454.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.2846, allocations: 370.8 kB / 454.6 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.2858, allocations: 401.7 kB / 455 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001402/0.2872, allocations: 0.6772 MB / 455.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.2895, allocations: 0.9713 MB / 456.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.2895, allocations: 7.938 kB / 456.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002927/0.2924, allocations: 1.132 MB / 457.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.047e-05/0.2925, allocations: 71.39 kB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.2925, allocations: 4 kB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.2926, allocations: 12 kB / 457.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.2936, allocations: 223.9 kB / 458.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.631e-05/0.2936, allocations: 15.94 kB / 458.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.2947, allocations: 191.2 kB / 458.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.363e-05/0.2947, allocations: 28 kB / 458.3 MB, free: 12.16 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.000343/0.2951, allocations: 229.5 kB / 458.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.2952, allocations: 71.58 kB / 458.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.2954, allocations: 70.41 kB / 458.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.2954, allocations: 8 kB / 458.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.2954, allocations: 0 / 458.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.2954, allocations: 3.984 kB / 458.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003446/0.2989, allocations: 1.649 MB / 460.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2989, allocations: 0 / 460.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.2996, allocations: 151.8 kB / 460.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2996, allocations: 0 / 460.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.2997, allocations: 15.98 kB / 460.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.2997, allocations: 4 kB / 460.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2997, allocations: 0 / 460.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003221/0.3029, allocations: 1.303 MB / 461.8 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.3031, allocations: 75.45 kB / 461.9 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.3032, allocations: 12 kB / 461.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007656/0.3039, allocations: 107.9 kB / 462 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3041, allocations: 52.3 kB / 462.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.3041, allocations: 19.92 kB / 462.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005983/0.3047, allocations: 406.8 kB / 462.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3047, allocations: 0 / 462.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006346/0.3053, allocations: 179.8 kB / 462.6 MB, free: 7.754 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.0001782/0.3055, allocations: 115.2 kB / 462.8 MB, free: 7.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.308, allocations: 0.9658 MB / 463.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.308, allocations: 0 / 463.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3092, allocations: 398.4 kB / 464.1 MB, free: 6.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006091/0.3098, allocations: 102.2 kB / 464.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.3124, allocations: 1.283 MB / 465.5 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.3129, allocations: 0.8863 MB / 466.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.3132, allocations: 63.42 kB / 466.4 MB, free: 3.859 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3132, allocations: 0 / 466.4 MB, free: 3.859 MB / 366.1 MB Notification: Performance of Templates: time 0.01472/0.3279, allocations: 9.351 MB / 475.8 MB, free: 10.54 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/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_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: 7.729163693031296]