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.001829/0.001829, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.001438/0.001438, allocations: 214.6 kB / 22.13 MB, free: 0.9414 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.484/1.484, allocations: 230.2 MB / 255.2 MB, free: 15.22 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.00184/0.00184, allocations: 67.89 kB / 374.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09684, allocations: 53.32 MB / 427.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005568/0.1024, allocations: 4.266 MB / 432.1 MB, free: 180 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1854/0.2878, allocations: 1.206 MB / 433.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.2881, allocations: 11.28 kB / 433.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002567/0.2884, allocations: 106.2 kB / 433.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003166/0.2887, allocations: 188.4 kB / 433.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005693/0.2892, allocations: 330.1 kB / 433.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009058/0.2902, allocations: 1.092 MB / 435 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.2905, allocations: 199.7 kB / 435.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003447/0.2908, allocations: 407.1 kB / 435.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004321/0.2912, allocations: 464.5 kB / 436.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.2914, allocations: 118.9 kB / 436.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.2915, allocations: 119 kB / 436.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.2917, allocations: 227.7 kB / 436.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003118/0.292, allocations: 446.2 kB / 437 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2931, allocations: 1.225 MB / 438.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2931, allocations: 0.75 kB / 438.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2931, allocations: 1.656 kB / 438.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2932, allocations: 0 / 438.2 MB, free: 6.879 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.002763/0.2959, allocations: 1.279 MB / 439.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.296, allocations: 10.19 kB / 439.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.2961, allocations: 89.64 kB / 439.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.2967, allocations: 484.2 kB / 440 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.2967, allocations: 46.59 kB / 440.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2968, allocations: 64.25 kB / 440.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.2991, allocations: 0.9653 MB / 441.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.2991, allocations: 3.938 kB / 441.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.703e-05/0.2992, allocations: 29.05 kB / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.2992, allocations: 14.62 kB / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002964/0.3022, allocations: 0.9997 MB / 442.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/0.3067, allocations: 3.205 MB / 445.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.309, allocations: 0.8899 MB / 446.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.3102, allocations: 426.5 kB / 446.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.104e-05/0.3102, allocations: 17.31 kB / 446.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.3114, allocations: 463.1 kB / 447.1 MB, free: 2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.414e-06/0.3114, allocations: 0 / 447.1 MB, free: 2 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003214/0.3146, allocations: 1.098 MB / 448.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.117e-05/0.3147, allocations: 378.9 kB / 448.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000788/0.3155, allocations: 0.5721 MB / 449.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.692e-05/0.3156, allocations: 44.89 kB / 449.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.3158, allocations: 373.9 kB / 449.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3159, allocations: 174.2 kB / 449.8 MB, free: 472 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.3161, allocations: 143.1 kB / 449.9 MB, free: 396 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.368e-05/0.3162, allocations: 371.9 kB / 450.3 MB, free: 48 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.3176, allocations: 415.2 kB / 450.7 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.3192, allocations: 0.68 MB / 451.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/0.3216, allocations: 0.9679 MB / 452.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.3216, allocations: 6.656 kB / 452.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003039/0.3247, allocations: 1.135 MB / 453.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.269e-05/0.3247, allocations: 65.77 kB / 453.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3248, allocations: 6.781 kB / 453.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.3248, allocations: 11 kB / 453.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.3258, allocations: 225.5 kB / 453.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.006e-05/0.3258, allocations: 14.98 kB / 453.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.327, allocations: 194.2 kB / 454 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.789e-05/0.327, allocations: 31.22 kB / 454 MB, free: 14.35 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.0003542/0.3274, allocations: 238.3 kB / 454.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3275, allocations: 69.08 kB / 454.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001711/0.3277, allocations: 71.33 kB / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3277, allocations: 6.141 kB / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3277, allocations: 2.438 kB / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.3277, allocations: 2.297 kB / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.3313, allocations: 1.679 MB / 456.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3313, allocations: 4 kB / 456.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008026/0.3321, allocations: 145.3 kB / 456.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3321, allocations: 2.531 kB / 456.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.3321, allocations: 11.48 kB / 456.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.3321, allocations: 3.031 kB / 456.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3321, allocations: 0 / 456.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.3359, allocations: 1.308 MB / 457.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.3361, allocations: 150.4 kB / 457.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.3363, allocations: 21.17 kB / 457.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008287/0.3371, allocations: 100.6 kB / 457.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.3372, allocations: 60.09 kB / 457.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.3373, allocations: 15.28 kB / 457.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006455/0.3379, allocations: 407 kB / 458.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3379, allocations: 0 / 458.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006923/0.3386, allocations: 173 kB / 458.4 MB, free: 11.62 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.0001942/0.3388, allocations: 125.8 kB / 458.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002793/0.3416, allocations: 0.9637 MB / 459.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3416, allocations: 1.062 kB / 459.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.3428, allocations: 391 kB / 459.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007226/0.3435, allocations: 109.7 kB / 460 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.3462, allocations: 1.286 MB / 461.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.3467, allocations: 0.8799 MB / 462.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.347, allocations: 60.39 kB / 462.2 MB, free: 9.145 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.347, allocations: 4 kB / 462.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of Templates: time 0.01503/0.3621, allocations: 9.34 MB / 471.6 MB, free: 3.578 MB / 366.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_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_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.575752865988761]