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.001864/0.001864, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 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.001915/0.001915, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 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.564/1.564, allocations: 177 MB / 204.5 MB, free: 5.625 MB / 186.7 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 1.944e-06/1.944e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.818e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01666/0.01669, allocations: 13.34 MB / 285.5 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1448/0.1615, allocations: 19.33 MB / 304.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.165, allocations: 191.2 kB / 305 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004455/0.1695, allocations: 1.036 MB / 306.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.1804, allocations: 2.375 MB / 308.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00688/0.1873, allocations: 1.437 MB / 309.9 MB, free: 8.059 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01239/0.1997, allocations: 6.645 MB / 316.5 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000779/0.2005, allocations: 240.2 kB / 316.8 MB, free: 4.637 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002817/0.2033, allocations: 1.507 MB / 318.3 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001411/0.2047, allocations: 0.7589 MB / 319 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002558/0.205, allocations: 68 kB / 319.1 MB, free: 2.672 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005086/0.21, allocations: 1.206 MB / 320.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003589/0.2104, allocations: 309.7 kB / 320.6 MB, free: 1.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.2118, allocations: 0.7048 MB / 321.3 MB, free: 464 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008811/0.2206, allocations: 3.639 MB / 325 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2207, allocations: 4 kB / 325 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2207, allocations: 0 / 325 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.995e-05/0.2207, allocations: 0 / 325 MB, free: 12.8 MB / 282.7 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.0099/0.2306, allocations: 3.879 MB / 328.8 MB, free: 8.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.2307, allocations: 11.98 kB / 328.9 MB, free: 8.848 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009685/0.2316, allocations: 429.5 kB / 329.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00694/0.2386, allocations: 2.701 MB / 332 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.368e-05/0.2387, allocations: 32.98 kB / 332 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.2389, allocations: 55.89 kB / 332.1 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.2408, allocations: 0.6094 MB / 332.7 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.2408, allocations: 4 kB / 332.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.2409, allocations: 19.94 kB / 332.7 MB, free: 4.898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/0.2409, allocations: 28.61 kB / 332.7 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.2424, allocations: 0.6719 MB / 333.4 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007179/0.2496, allocations: 3.132 MB / 336.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.2507, allocations: 481.6 kB / 337 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009545/0.2516, allocations: 0.5071 MB / 337.5 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03134/0.283, allocations: 15.37 MB / 352.9 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007994/0.2838, allocations: 355.5 kB / 353.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.235e-06/0.2838, allocations: 0 / 353.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003477/0.2873, allocations: 1.28 MB / 354.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.2873, allocations: 71.33 kB / 354.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00547/0.2928, allocations: 3.737 MB / 358.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.415e-05/0.2929, allocations: 37.7 kB / 358.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001894/0.2948, allocations: 1.687 MB / 360 MB, free: 9.027 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.295, allocations: 182.6 kB / 360.2 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003707/0.2954, allocations: 244 kB / 360.4 MB, free: 8.602 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003178/0.2957, allocations: 0.5277 MB / 361 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.2962, allocations: 213.9 kB / 361.2 MB, free: 7.855 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.2973, allocations: 0.7369 MB / 361.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.299, allocations: 1.018 MB / 362.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.539e-05/0.299, allocations: 7.938 kB / 362.9 MB, free: 5.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002886/0.3019, allocations: 1.29 MB / 364.2 MB, free: 4.324 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3019, allocations: 16.06 kB / 364.2 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.302, allocations: 80 kB / 364.3 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006487/0.3027, allocations: 271.6 kB / 364.6 MB, free: 3.961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.3033, allocations: 171.7 kB / 364.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3046, allocations: 1.164 MB / 365.9 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3056, allocations: 99.28 kB / 366 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3058, allocations: 68 kB / 366.1 MB, free: 2.434 MB / 314.7 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.0008867/0.3066, allocations: 472.8 kB / 366.5 MB, free: 1.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005208/0.3072, allocations: 389.7 kB / 366.9 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/0.3101, allocations: 1.228 MB / 368.2 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.3101, allocations: 4 kB / 368.2 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3101, allocations: 4 kB / 368.2 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3101, allocations: 3.984 kB / 368.2 MB, free: 344 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.3151, allocations: 2.62 MB / 370.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000112/0.3152, allocations: 79.55 kB / 370.9 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.3155, allocations: 55.95 kB / 370.9 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005512/0.3161, allocations: 267.1 kB / 371.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-05/0.3162, allocations: 43.92 kB / 371.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.3175, allocations: 1.132 MB / 372.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3175, allocations: 0 / 372.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.3196, allocations: 1.198 MB / 373.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.3206, allocations: 419.3 kB / 374 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/0.3209, allocations: 11.98 kB / 374 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006272/0.3215, allocations: 23.98 kB / 374 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.3217, allocations: 71.8 kB / 374.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.207e-05/0.3218, allocations: 36 kB / 374.1 MB, free: 10.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003275/0.3251, allocations: 2.112 MB / 376.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3251, allocations: 0 / 376.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001466/0.3265, allocations: 0.5735 MB / 376.8 MB, free: 7.543 MB / 330.7 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.001365/0.3279, allocations: 0.8272 MB / 377.6 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001961/0.3299, allocations: 0.8309 MB / 378.4 MB, free: 5.852 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3299, allocations: 0 / 378.4 MB, free: 5.852 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009511/0.3308, allocations: 482.2 kB / 378.9 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.3336, allocations: 0.6327 MB / 379.6 MB, free: 4.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006459/0.3401, allocations: 4.038 MB / 383.6 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.3412, allocations: 1.052 MB / 384.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001235/0.3425, allocations: 382.9 kB / 385 MB, free: 15.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002594/0.3427, allocations: 160.5 kB / 385.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.3427, allocations: 3.938 kB / 385.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of Templates: time 0.06274/0.4055, allocations: 32.44 MB / 417.6 MB, free: 15 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/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: 5.744304014951922]