Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.001711/0.001711, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002038/0.002038, allocations: 215.5 kB / 24.48 MB, free: 3.836 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.433/1.433, allocations: 230.5 MB / 258.1 MB, free: 7.793 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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 59.91 kB / 379 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2584, allocations: 53.41 MB / 432.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01369/0.2721, allocations: 11.83 MB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2958, allocations: 17.53 MB / 461.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002548/0.2984, allocations: 189.8 kB / 461.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.3017, allocations: 1.023 MB / 463 MB, free: 7.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00754/0.3093, allocations: 2.308 MB / 465.3 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004618/0.3139, allocations: 1.41 MB / 466.7 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3243, allocations: 6.482 MB / 473.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006007/0.3249, allocations: 244.9 kB / 473.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.3266, allocations: 1.108 MB / 474.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.328, allocations: 1.009 MB / 475.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.3282, allocations: 72 kB / 475.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.3315, allocations: 1.202 MB / 476.8 MB, free: 9.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003596/0.3318, allocations: 309.7 kB / 477.1 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.333, allocations: 0.9546 MB / 478 MB, free: 8.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005492/0.3385, allocations: 3.694 MB / 481.7 MB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3385, allocations: 0 / 481.7 MB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3385, allocations: 0 / 481.7 MB, free: 4.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.097e-05/0.3386, allocations: 0 / 481.7 MB, free: 4.945 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005475/0.3441, allocations: 3.539 MB / 485.3 MB, free: 1.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3441, allocations: 23.92 kB / 485.3 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004618/0.3446, allocations: 393.6 kB / 485.7 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003978/0.3486, allocations: 2.362 MB / 488 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/0.3486, allocations: 29 kB / 488.1 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.3487, allocations: 51.98 kB / 488.1 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.35, allocations: 0.7031 MB / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3501, allocations: 0 / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.39e-05/0.3501, allocations: 20 kB / 488.8 MB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.3501, allocations: 19.98 kB / 488.9 MB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.3517, allocations: 0.789 MB / 489.7 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00493/0.3566, allocations: 2.576 MB / 492.2 MB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3578, allocations: 0.5597 MB / 492.8 MB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009876/0.3588, allocations: 0.5811 MB / 493.4 MB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02509/0.3839, allocations: 13.71 MB / 0.4952 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007678/0.3846, allocations: 361.6 kB / 0.4955 GB, free: 10.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3847, allocations: 4 kB / 0.4955 GB, free: 10.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003174/0.3878, allocations: 1.318 MB / 0.4968 GB, free: 9.305 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.3879, allocations: 59.39 kB / 0.4969 GB, free: 9.234 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.3914, allocations: 2.794 MB / 0.4996 GB, free: 6.418 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.355e-05/0.3915, allocations: 37.7 kB / 0.4996 GB, free: 6.375 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.3928, allocations: 1.396 MB / 0.501 GB, free: 4.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.393, allocations: 178.6 kB / 0.5012 GB, free: 4.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/0.3933, allocations: 218.4 kB / 0.5014 GB, free: 4.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3934, allocations: 341.9 kB / 0.5017 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.394, allocations: 241.9 kB / 0.5019 GB, free: 4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000844/0.3949, allocations: 0.5888 MB / 0.5025 GB, free: 3.246 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.3964, allocations: 0.8802 MB / 0.5034 GB, free: 2.191 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3964, allocations: 4 kB / 0.5034 GB, free: 2.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00243/0.3988, allocations: 1.277 MB / 0.5046 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.3988, allocations: 12 kB / 0.5046 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/0.399, allocations: 80 kB / 0.5047 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006151/0.3996, allocations: 288.8 kB / 0.505 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005681/0.4001, allocations: 171.6 kB / 0.5052 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.4012, allocations: 0.8872 MB / 0.506 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.4023, allocations: 103.3 kB / 0.5061 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.4024, allocations: 68 kB / 0.5062 GB, free: 15.29 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0007761/0.4032, allocations: 426.3 kB / 0.5066 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004655/0.4036, allocations: 381.6 kB / 0.507 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002808/0.4064, allocations: 1.255 MB / 0.5082 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4064, allocations: 4 kB / 0.5082 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4065, allocations: 0 / 0.5082 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4065, allocations: 3.984 kB / 0.5082 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.4103, allocations: 2.028 MB / 0.5102 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001081/0.4104, allocations: 75.94 kB / 0.5102 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.4107, allocations: 59.94 kB / 0.5103 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/0.4112, allocations: 268.8 kB / 0.5106 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-05/0.4112, allocations: 35.98 kB / 0.5106 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009504/0.4122, allocations: 0.8641 MB / 0.5114 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4122, allocations: 0 / 0.5114 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.4142, allocations: 1.134 MB / 0.5125 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009796/0.4152, allocations: 411.2 kB / 0.5129 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.4155, allocations: 11.94 kB / 0.5129 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006516/0.4161, allocations: 35.95 kB / 0.513 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.4163, allocations: 63.88 kB / 0.513 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-05/0.4164, allocations: 39.98 kB / 0.5131 GB, free: 8.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002638/0.419, allocations: 1.799 MB / 0.5148 GB, free: 6.266 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.419, allocations: 0 / 0.5148 GB, free: 6.266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001523/0.4205, allocations: 0.5735 MB / 0.5154 GB, free: 5.691 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001198/0.4217, allocations: 0.7759 MB / 0.5162 GB, free: 4.906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.4236, allocations: 0.8105 MB / 0.5169 GB, free: 4.078 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4236, allocations: 0 / 0.5169 GB, free: 4.078 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009278/0.4245, allocations: 471.8 kB / 0.5174 GB, free: 3.594 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/0.4271, allocations: 0.5915 MB / 0.518 GB, free: 2.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006103/0.4332, allocations: 4.063 MB / 0.5219 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009971/0.4342, allocations: 1.048 MB / 0.523 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.4346, allocations: 167.4 kB / 0.5231 GB, free: 13.63 MB / 446.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4346, allocations: 4 kB / 0.5231 GB, free: 13.63 MB / 446.1 MB Notification: Performance of Templates: time 0.2431/0.6776, allocations: 49.43 MB / 0.5714 GB, free: 77.71 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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: 11.140746030025184]