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.001795/0.001795, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002391/0.002391, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.458/1.458, allocations: 230.5 MB / 258.1 MB, free: 7.785 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.002005/0.002005, allocations: 59.89 kB / 379 MB, free: 2.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2625, allocations: 53.41 MB / 432.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005294/0.2678, allocations: 3.825 MB / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2699, allocations: 1.187 MB / 437.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.2701, allocations: 11.94 kB / 437.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.2704, allocations: 110.8 kB / 437.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.2707, allocations: 186.3 kB / 437.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007009/0.2714, allocations: 335.6 kB / 438 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.2725, allocations: 1.089 MB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.2728, allocations: 187 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004433/0.2733, allocations: 406.8 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.2738, allocations: 406.2 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.274, allocations: 120 kB / 440.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.2741, allocations: 120 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.2743, allocations: 227.3 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003852/0.2747, allocations: 366.5 kB / 440.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.2759, allocations: 1.241 MB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2759, allocations: 0 / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2759, allocations: 0 / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.2759, allocations: 4 kB / 442.2 MB, free: 12.73 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.002868/0.2788, allocations: 1.198 MB / 443.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2788, allocations: 11.98 kB / 443.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.279, allocations: 88.42 kB / 443.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007607/0.2797, allocations: 428.1 kB / 443.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.616e-05/0.2798, allocations: 45.69 kB / 443.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.2799, allocations: 56.38 kB / 444 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.2823, allocations: 1.277 MB / 445.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.2823, allocations: 3.938 kB / 445.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.491e-05/0.2824, allocations: 28 kB / 445.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.2824, allocations: 16 kB / 445.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002994/0.2854, allocations: 0.9991 MB / 446.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005021/0.2904, allocations: 2.826 MB / 449.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.2928, allocations: 0.7385 MB / 449.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.2942, allocations: 429.8 kB / 450.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.2943, allocations: 16.31 kB / 450.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.2955, allocations: 468.5 kB / 450.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.116e-06/0.2955, allocations: 0 / 450.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003381/0.2989, allocations: 1.1 MB / 451.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/0.2991, allocations: 368.3 kB / 452.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008349/0.3, allocations: 0.5416 MB / 452.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-05/0.3, allocations: 45.64 kB / 452.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003178/0.3004, allocations: 376.4 kB / 453.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3005, allocations: 178.5 kB / 453.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/0.3008, allocations: 142.6 kB / 453.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.301, allocations: 366.8 kB / 453.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.3023, allocations: 465.1 kB / 454.3 MB, free: 108 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.304, allocations: 1.033 MB / 455.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002486/0.3065, allocations: 0.9752 MB / 456.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3065, allocations: 0 / 456.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003155/0.3097, allocations: 1.194 MB / 457.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.878e-05/0.3097, allocations: 67.39 kB / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3097, allocations: 8 kB / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.3098, allocations: 8 kB / 457.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.3108, allocations: 223.9 kB / 457.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.223e-05/0.3108, allocations: 15.94 kB / 457.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.3119, allocations: 187.2 kB / 458 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/0.312, allocations: 35.98 kB / 458 MB, free: 12.02 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.0003627/0.3124, allocations: 221.6 kB / 458.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.3125, allocations: 67.56 kB / 458.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.3127, allocations: 69.94 kB / 458.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3127, allocations: 4 kB / 458.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3127, allocations: 0 / 458.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3127, allocations: 3.984 kB / 458.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.3162, allocations: 1.45 MB / 459.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.3162, allocations: 0 / 459.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008147/0.317, allocations: 155.7 kB / 460 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.317, allocations: 7.938 kB / 460 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.317, allocations: 11.98 kB / 460 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.317, allocations: 4 kB / 460 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.317, allocations: 0 / 460 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/0.3206, allocations: 1.3 MB / 461.3 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.3207, allocations: 67.53 kB / 461.4 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.3209, allocations: 12 kB / 461.4 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007891/0.3216, allocations: 107.9 kB / 461.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.3218, allocations: 48.36 kB / 461.5 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.3218, allocations: 15.98 kB / 461.6 MB, free: 8.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005867/0.3224, allocations: 362.8 kB / 461.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3224, allocations: 0 / 461.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.3231, allocations: 195.7 kB / 462.1 MB, free: 7.875 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.0001779/0.3233, allocations: 127 kB / 462.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.326, allocations: 1.019 MB / 463.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.326, allocations: 1.125 kB / 463.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.3271, allocations: 390.2 kB / 463.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.3278, allocations: 106.2 kB / 463.7 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002655/0.3304, allocations: 1.272 MB / 465 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.3307, allocations: 284.4 kB / 465.3 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.331, allocations: 63.42 kB / 465.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.331, allocations: 0 / 465.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of Templates: time 0.01683/0.3479, allocations: 9.348 MB / 474.7 MB, free: 11.21 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.817313560284674]