Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 92.62 kB / 20.95 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 153.5 kB / 24.25 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.598e-05/2.728e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01541/0.01544, allocations: 11.84 MB / 279.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1381/0.1535, allocations: 17.49 MB / 296.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002433/0.156, allocations: 189.3 kB / 296.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.1589, allocations: 1.037 MB / 297.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007055/0.166, allocations: 2.391 MB / 300.2 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004897/0.1709, allocations: 1.427 MB / 301.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009077/0.1799, allocations: 6.559 MB / 308.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006855/0.1806, allocations: 246 kB / 308.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.1829, allocations: 1.505 MB / 310 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009832/0.1838, allocations: 0.7559 MB / 310.7 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.184, allocations: 69.53 kB / 310.8 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00364/0.1877, allocations: 1.198 MB / 312 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002415/0.1879, allocations: 313.1 kB / 312.3 MB, free: 9.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.189, allocations: 0.6937 MB / 313 MB, free: 8.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.1925, allocations: 3.635 MB / 316.6 MB, free: 5.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1925, allocations: 0 / 316.6 MB, free: 5.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1925, allocations: 4 kB / 316.6 MB, free: 5.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.1925, allocations: 0 / 316.6 MB, free: 5.43 MB / 266.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.003863/0.1964, allocations: 3.507 MB / 320.1 MB, free: 1.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1964, allocations: 8.922 kB / 320.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003617/0.1968, allocations: 429.5 kB / 320.6 MB, free: 1.441 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.2004, allocations: 2.699 MB / 323.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.2005, allocations: 37 kB / 323.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.2006, allocations: 51.95 kB / 323.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.2022, allocations: 0.7031 MB / 324.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.2022, allocations: 0 / 324.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-05/0.2023, allocations: 23.98 kB / 324.1 MB, free: 13.9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/0.2023, allocations: 19.94 kB / 324.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.2041, allocations: 0.789 MB / 324.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0055/0.2096, allocations: 2.583 MB / 327.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.211, allocations: 0.5664 MB / 328 MB, free: 9.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.2122, allocations: 0.5694 MB / 328.6 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0303/0.2425, allocations: 15.19 MB / 343.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008676/0.2434, allocations: 364.9 kB / 344.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.2434, allocations: 3.938 kB / 344.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003714/0.2471, allocations: 1.333 MB / 345.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.2471, allocations: 63.39 kB / 345.5 MB, free: 8.078 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004189/0.2513, allocations: 2.79 MB / 348.3 MB, free: 5.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.751e-05/0.2514, allocations: 37.7 kB / 348.4 MB, free: 5.223 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.253, allocations: 1.395 MB / 349.8 MB, free: 3.824 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.2532, allocations: 179.9 kB / 349.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/0.2535, allocations: 218.4 kB / 350.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.2537, allocations: 341.9 kB / 350.5 MB, free: 3.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006721/0.2544, allocations: 233.9 kB / 350.7 MB, free: 2.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.2554, allocations: 0.5966 MB / 351.3 MB, free: 2.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.2572, allocations: 0.88 MB / 352.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.2572, allocations: 4 kB / 352.2 MB, free: 1.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00283/0.26, allocations: 1.333 MB / 353.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.26, allocations: 8 kB / 353.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/0.2602, allocations: 80 kB / 353.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006274/0.2608, allocations: 271.6 kB / 353.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.2615, allocations: 175.7 kB / 354.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/0.2627, allocations: 0.8808 MB / 354.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.2638, allocations: 115.2 kB / 355.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.2639, allocations: 64 kB / 355.1 MB, free: 14.1 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.0008445/0.2648, allocations: 421.5 kB / 355.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005408/0.2653, allocations: 394.6 kB / 355.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.2684, allocations: 1.263 MB / 357.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.2684, allocations: 4 kB / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2684, allocations: 0 / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.2684, allocations: 3.984 kB / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.2727, allocations: 2.03 MB / 359.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001214/0.2728, allocations: 72.12 kB / 359.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.2732, allocations: 63.88 kB / 359.3 MB, free: 9.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005917/0.2737, allocations: 264.3 kB / 359.6 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.297e-05/0.2738, allocations: 31.98 kB / 359.6 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.275, allocations: 0.8706 MB / 360.5 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.275, allocations: 0 / 360.5 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.2774, allocations: 1.159 MB / 361.7 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009639/0.2784, allocations: 419.3 kB / 362.1 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002998/0.2787, allocations: 8 kB / 362.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006728/0.2793, allocations: 31.95 kB / 362.1 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.2795, allocations: 67.92 kB / 362.2 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.581e-05/0.2796, allocations: 36 kB / 362.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002807/0.2824, allocations: 1.807 MB / 364 MB, free: 5.062 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2824, allocations: 0 / 364 MB, free: 5.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0015/0.2839, allocations: 0.5696 MB / 364.6 MB, free: 4.492 MB / 314.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.001353/0.2853, allocations: 0.8437 MB / 365.4 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002062/0.2873, allocations: 0.8136 MB / 366.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2873, allocations: 128 / 366.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.2884, allocations: 483.3 kB / 366.7 MB, free: 2.449 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002628/0.291, allocations: 0.6184 MB / 367.3 MB, free: 1.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006264/0.2973, allocations: 4.019 MB / 371.4 MB, free: 13.74 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.2985, allocations: 1.048 MB / 372.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001073/0.2996, allocations: 386.9 kB / 372.8 MB, free: 12.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.2998, allocations: 160.5 kB / 372.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2998, allocations: 0 / 372.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of Templates: time 0.0628/0.3626, allocations: 32.39 MB / 405.3 MB, free: 12.23 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.501060966984369]