Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 96.3 kB / 21.73 MB, free: 2.703 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 167.6 kB / 25.02 MB, free: 8.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 158.6 MB / 186.8 MB, free: 2.867 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 250.3 MB, free: 3.965 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.252e-05/3.413e-05, allocations: 5.406 kB / 250.3 MB, free: 3.961 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01551/0.01554, allocations: 11.3 MB / 261.6 MB, free: 8.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02716/0.0427, allocations: 16.68 MB / 278.3 MB, free: 7.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001983/0.04468, allocations: 197.8 kB / 278.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003061/0.04775, allocations: 1.009 MB / 279.5 MB, free: 6.652 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008033/0.05578, allocations: 2.346 MB / 281.9 MB, free: 4.289 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00469/0.06047, allocations: 1.386 MB / 283.3 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.07288, allocations: 6.429 MB / 289.7 MB, free: 12.44 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000838/0.07372, allocations: 245 kB / 289.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.07639, allocations: 1.368 MB / 291.3 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.07756, allocations: 0.728 MB / 292 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.07775, allocations: 68 kB / 292.1 MB, free: 9.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003491/0.08124, allocations: 1.089 MB / 293.2 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003653/0.0816, allocations: 317.6 kB / 293.5 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.08305, allocations: 0.7048 MB / 294.2 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005325/0.08838, allocations: 3.659 MB / 297.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.08838, allocations: 0 / 297.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.08838, allocations: 0 / 297.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.174e-05/0.08844, allocations: 0 / 297.8 MB, free: 4.215 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.006186/0.09462, allocations: 3.527 MB / 301.4 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.09467, allocations: 11.98 kB / 301.4 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006415/0.09531, allocations: 437.5 kB / 301.8 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1214/0.2168, allocations: 2.707 MB / 304.5 MB, free: 59.44 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.2168, allocations: 36.52 kB / 304.6 MB, free: 59.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.217, allocations: 44.23 kB / 304.6 MB, free: 59.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.2186, allocations: 0.7093 MB / 305.3 MB, free: 59.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.2187, allocations: 0 / 305.3 MB, free: 59.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/0.2187, allocations: 20.88 kB / 305.3 MB, free: 59.15 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.2188, allocations: 22.75 kB / 305.3 MB, free: 59.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.2204, allocations: 0.7903 MB / 306.1 MB, free: 58.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00588/0.2263, allocations: 2.594 MB / 308.7 MB, free: 57.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.2276, allocations: 0.5614 MB / 309.3 MB, free: 57.52 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009546/0.2285, allocations: 0.5853 MB / 309.9 MB, free: 57.28 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02167/0.2502, allocations: 15.24 MB / 325.1 MB, free: 44.13 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006936/0.2509, allocations: 365.7 kB / 325.5 MB, free: 43.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/0.2509, allocations: 4 kB / 325.5 MB, free: 43.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.003107/0.254, allocations: 1.346 MB / 326.8 MB, free: 42.44 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.254, allocations: 67.33 kB / 326.9 MB, free: 42.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/0.2567, allocations: 2.809 MB / 329.7 MB, free: 39.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.2567, allocations: 37.7 kB / 329.7 MB, free: 39.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007998/0.2575, allocations: 1.398 MB / 331.1 MB, free: 38.14 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.2577, allocations: 172.6 kB / 331.3 MB, free: 37.99 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.2579, allocations: 218.4 kB / 331.5 MB, free: 37.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.258, allocations: 337.9 kB / 331.8 MB, free: 37.44 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005088/0.2585, allocations: 240.1 kB / 332.1 MB, free: 37.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005934/0.2591, allocations: 0.5925 MB / 332.7 MB, free: 36.45 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.2602, allocations: 0.8844 MB / 333.6 MB, free: 35.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.2603, allocations: 4 kB / 333.6 MB, free: 35.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00219/0.2624, allocations: 1.323 MB / 334.9 MB, free: 34.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.2625, allocations: 8 kB / 334.9 MB, free: 34.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.932e-05/0.2626, allocations: 91.72 kB / 335 MB, free: 34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005014/0.2631, allocations: 272.8 kB / 335.2 MB, free: 33.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.2636, allocations: 167.3 kB / 335.4 MB, free: 33.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008113/0.2644, allocations: 0.8955 MB / 336.3 MB, free: 32.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.2656, allocations: 112.5 kB / 336.4 MB, free: 32.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.162e-05/0.2657, allocations: 67.94 kB / 336.5 MB, free: 32.5 MB / 282.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.0006605/0.2663, allocations: 420.9 kB / 336.9 MB, free: 32.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003366/0.2667, allocations: 401.6 kB / 337.3 MB, free: 31.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/0.2691, allocations: 1.257 MB / 338.5 MB, free: 30.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.2691, allocations: 15.92 kB / 338.6 MB, free: 30.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.2691, allocations: 3.938 kB / 338.6 MB, free: 30.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2691, allocations: 0 / 338.6 MB, free: 30.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.2724, allocations: 2.035 MB / 340.6 MB, free: 28.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-05/0.2725, allocations: 72.03 kB / 340.7 MB, free: 28.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002805/0.2728, allocations: 63.88 kB / 340.7 MB, free: 28.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005008/0.2733, allocations: 260.8 kB / 341 MB, free: 27.97 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.952e-05/0.2733, allocations: 35.98 kB / 341 MB, free: 27.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007126/0.274, allocations: 0.8647 MB / 341.9 MB, free: 27.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.274, allocations: 0 / 341.9 MB, free: 27.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.2757, allocations: 1.159 MB / 343 MB, free: 25.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007271/0.2764, allocations: 425.1 kB / 343.5 MB, free: 25.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.2767, allocations: 15.94 kB / 343.5 MB, free: 25.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.2774, allocations: 35.95 kB / 343.5 MB, free: 25.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.2775, allocations: 59.94 kB / 343.6 MB, free: 25.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/0.2776, allocations: 39.98 kB / 343.6 MB, free: 25.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001874/0.2795, allocations: 1.82 MB / 345.4 MB, free: 23.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2795, allocations: 0 / 345.4 MB, free: 23.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001196/0.2807, allocations: 0.5774 MB / 346 MB, free: 22.88 MB / 282.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.0009887/0.2817, allocations: 0.8326 MB / 346.8 MB, free: 22.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.2832, allocations: 0.8128 MB / 347.7 MB, free: 21.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.2832, allocations: 8.125 kB / 347.7 MB, free: 21.21 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008117/0.2841, allocations: 469.6 kB / 348.1 MB, free: 20.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.2857, allocations: 0.5377 MB / 348.7 MB, free: 20.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004233/0.2899, allocations: 4.047 MB / 352.7 MB, free: 16.08 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.2906, allocations: 1.049 MB / 353.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009198/0.2915, allocations: 389.4 kB / 354.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.2917, allocations: 160.5 kB / 354.3 MB, free: 14.46 MB / 282.7 MB Notification: Performance of SimCode: time 2.224e-06/0.2917, allocations: 0 / 354.3 MB, free: 14.46 MB / 282.7 MB Notification: Performance of Templates: time 0.0552/0.3469, allocations: 32.58 MB / 386.9 MB, free: 13.86 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.676304521039128]