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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 112.5 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 200 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 60.14 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.242, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01246/0.2545, allocations: 14.01 MB / 423.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.2773, allocations: 20.29 MB / 444.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.2797, allocations: 122.9 kB / 444.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.2828, allocations: 1.113 MB / 445.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007628/0.2905, allocations: 2.274 MB / 447.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004613/0.2952, allocations: 1.428 MB / 449.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009331/0.3045, allocations: 6.434 MB / 455.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008147/0.3054, allocations: 420.4 kB / 456 MB, free: 3.285 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.307, allocations: 1.077 MB / 457.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.3082, allocations: 1.048 MB / 458.1 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.3084, allocations: 72 kB / 458.2 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003601/0.312, allocations: 1.475 MB / 459.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.3124, allocations: 305.8 kB / 460 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.3136, allocations: 1.3 MB / 461.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004396/0.318, allocations: 3.639 MB / 464.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.318, allocations: 0 / 464.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.318, allocations: 0 / 464.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.315e-05/0.3181, allocations: 0 / 464.9 MB, free: 10.34 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.004444/0.3225, allocations: 3.502 MB / 468.4 MB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.3226, allocations: 8.031 kB / 468.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004437/0.323, allocations: 371.5 kB / 468.8 MB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003218/0.3263, allocations: 2.504 MB / 471.3 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.3263, allocations: 32.94 kB / 471.3 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.3264, allocations: 59.88 kB / 471.4 MB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.3277, allocations: 0.7031 MB / 472.1 MB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3277, allocations: 0 / 472.1 MB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.3278, allocations: 16 kB / 472.1 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.3278, allocations: 19.98 kB / 472.1 MB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3293, allocations: 0.7851 MB / 472.9 MB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004318/0.3336, allocations: 2.883 MB / 475.8 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3349, allocations: 0.6949 MB / 476.5 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000963/0.3358, allocations: 0.6508 MB / 477.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02752/0.3634, allocations: 30.74 MB / 0.496 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007592/0.3642, allocations: 365.6 kB / 0.4963 GB, free: 10.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.3642, allocations: 0 / 0.4963 GB, free: 10.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003115/0.3673, allocations: 1.38 MB / 0.4977 GB, free: 9.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.3674, allocations: 67.33 kB / 0.4977 GB, free: 9.008 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/0.3705, allocations: 2.803 MB / 0.5005 GB, free: 6.184 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.3706, allocations: 33.7 kB / 0.5005 GB, free: 6.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.3716, allocations: 1.387 MB / 0.5019 GB, free: 4.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.3718, allocations: 161.7 kB / 0.502 GB, free: 4.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.372, allocations: 230.1 kB / 0.5022 GB, free: 4.359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3721, allocations: 338 kB / 0.5025 GB, free: 4.023 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005642/0.3727, allocations: 233.8 kB / 0.5028 GB, free: 3.797 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007513/0.3735, allocations: 0.5929 MB / 0.5034 GB, free: 3.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.3748, allocations: 0.8841 MB / 0.5042 GB, free: 1.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.3749, allocations: 4 kB / 0.5042 GB, free: 1.977 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002231/0.3771, allocations: 1.276 MB / 0.5055 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3771, allocations: 8 kB / 0.5055 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/0.3773, allocations: 83.98 kB / 0.5056 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005048/0.3778, allocations: 277.2 kB / 0.5058 GB, free: 332 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.3783, allocations: 171.7 kB / 0.506 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008927/0.3792, allocations: 0.8837 MB / 0.5068 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009599/0.3802, allocations: 107 kB / 0.5069 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.3803, allocations: 71.97 kB / 0.507 GB, free: 15.07 MB / 446.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.0006949/0.381, allocations: 429.3 kB / 0.5074 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003614/0.3814, allocations: 363.6 kB / 0.5078 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002696/0.3841, allocations: 1.267 MB / 0.509 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3841, allocations: 4 kB / 0.509 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3841, allocations: 4 kB / 0.509 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.3842, allocations: 3.938 kB / 0.509 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.3875, allocations: 2.189 MB / 0.5112 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.805e-05/0.3876, allocations: 72.12 kB / 0.5112 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.3879, allocations: 63.88 kB / 0.5113 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.3884, allocations: 264.8 kB / 0.5115 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.562e-05/0.3885, allocations: 35.98 kB / 0.5116 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008368/0.3893, allocations: 0.8607 MB / 0.5124 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.3893, allocations: 7.969 kB / 0.5124 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.3912, allocations: 1.133 MB / 0.5135 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.3919, allocations: 464.5 kB / 0.514 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.3922, allocations: 15.94 kB / 0.514 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/0.3929, allocations: 31.95 kB / 0.514 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.393, allocations: 59.95 kB / 0.5141 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.3931, allocations: 39.98 kB / 0.5141 GB, free: 7.598 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002346/0.3954, allocations: 1.824 MB / 0.5159 GB, free: 5.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3955, allocations: 0 / 0.5159 GB, free: 5.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001403/0.3969, allocations: 0.5661 MB / 0.5164 GB, free: 5.203 MB / 446.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.001098/0.398, allocations: 0.7684 MB / 0.5172 GB, free: 4.426 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.3997, allocations: 0.8414 MB / 0.518 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3997, allocations: 1 kB / 0.518 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008953/0.4006, allocations: 0.4924 MB / 0.5185 GB, free: 3.047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.4031, allocations: 0.6143 MB / 0.5191 GB, free: 2.426 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005227/0.4084, allocations: 3.966 MB / 0.523 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009429/0.4093, allocations: 1.6 MB / 0.5245 GB, free: 12.78 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.4096, allocations: 163.4 kB / 0.5247 GB, free: 12.62 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4096, allocations: 0 / 0.5247 GB, free: 12.62 MB / 462.1 MB Notification: Performance of Templates: time 0.2407/0.6503, allocations: 48.04 MB / 0.5716 GB, free: 102.9 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches