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.0007892/0.0007893, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009768/0.0009768, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.8 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002213/0.0002213, allocations: 8 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08683/0.08707, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1753/0.2625, allocations: 13.36 MB / 372.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02072/0.2832, allocations: 20.22 MB / 392.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.2846, allocations: 63.12 kB / 392.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0026/0.2872, allocations: 0.9929 MB / 393.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006812/0.294, allocations: 1.892 MB / 395.8 MB, free: 476 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004517/0.2985, allocations: 1.198 MB / 397 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009477/0.308, allocations: 6.333 MB / 403.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000626/0.3087, allocations: 415.4 kB / 403.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.3101, allocations: 0.9926 MB / 404.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.3112, allocations: 1.02 MB / 405.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.3113, allocations: 38.53 kB / 405.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004248/0.3156, allocations: 1.459 MB / 407.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.3158, allocations: 282.8 kB / 407.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.317, allocations: 1.288 MB / 408.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003734/0.3207, allocations: 3.482 MB / 412.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3207, allocations: 0 / 412.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3207, allocations: 4 kB / 412.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.349e-05/0.3208, allocations: 0 / 412.3 MB, free: 6.598 MB / 318.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.004251/0.325, allocations: 3.069 MB / 415.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3251, allocations: 8.031 kB / 415.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003692/0.3254, allocations: 375.5 kB / 415.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/0.3287, allocations: 2.524 MB / 418.2 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.3288, allocations: 36.94 kB / 418.3 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.3289, allocations: 51.91 kB / 418.3 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.3302, allocations: 0.7187 MB / 419 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.3302, allocations: 0 / 419 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.3303, allocations: 23.98 kB / 419.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.3303, allocations: 16 kB / 419.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3319, allocations: 0.828 MB / 419.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00434/0.3362, allocations: 2.907 MB / 422.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.3376, allocations: 0.7477 MB / 423.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.3386, allocations: 0.6829 MB / 424.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/0.366, allocations: 30.74 MB / 455 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007846/0.3668, allocations: 389.5 kB / 455.4 MB, free: 6.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.825e-06/0.3668, allocations: 0 / 455.4 MB, free: 6.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00333/0.3702, allocations: 1.454 MB / 456.8 MB, free: 5.496 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.3702, allocations: 63.34 kB / 456.9 MB, free: 5.422 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003197/0.3734, allocations: 2.803 MB / 459.7 MB, free: 2.598 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.435e-05/0.3735, allocations: 33.7 kB / 459.7 MB, free: 2.559 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.3746, allocations: 1.383 MB / 461.1 MB, free: 1.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.3748, allocations: 161.7 kB / 461.3 MB, free: 1.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/0.3749, allocations: 69.69 kB / 461.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.375, allocations: 341.9 kB / 461.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/0.3756, allocations: 261.9 kB / 461.9 MB, free: 348 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008284/0.3764, allocations: 0.6163 MB / 462.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.3779, allocations: 0.9193 MB / 463.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.378, allocations: 7.938 kB / 463.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002453/0.3804, allocations: 1.314 MB / 464.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3805, allocations: 9 kB / 464.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/0.3806, allocations: 80 kB / 464.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/0.3811, allocations: 288.5 kB / 465.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.3817, allocations: 175.7 kB / 465.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008946/0.3826, allocations: 0.8918 MB / 466.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.3837, allocations: 115.2 kB / 466.3 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.3838, allocations: 67.98 kB / 466.4 MB, free: 11.5 MB / 382.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.0007931/0.3846, allocations: 426.5 kB / 466.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003503/0.385, allocations: 367.6 kB / 467.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.3881, allocations: 1.306 MB / 468.5 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3881, allocations: 8 kB / 468.5 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3881, allocations: 0 / 468.5 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3881, allocations: 7.922 kB / 468.5 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.3916, allocations: 2.228 MB / 470.7 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-05/0.3917, allocations: 68 kB / 470.8 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.3921, allocations: 76.06 kB / 470.9 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004635/0.3925, allocations: 260.8 kB / 471.1 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.3926, allocations: 35.98 kB / 471.1 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008485/0.3935, allocations: 0.8629 MB / 472 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3935, allocations: 4.031 kB / 472 MB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.3953, allocations: 1.172 MB / 473.2 MB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006275/0.3959, allocations: 472.4 kB / 473.6 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002647/0.3962, allocations: 8 kB / 473.6 MB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006804/0.3969, allocations: 43.97 kB / 473.7 MB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.3971, allocations: 59.88 kB / 473.8 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.356e-05/0.3972, allocations: 40 kB / 473.8 MB, free: 3.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002259/0.3994, allocations: 1.824 MB / 475.6 MB, free: 2.062 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3994, allocations: 0 / 475.6 MB, free: 2.062 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00126/0.4007, allocations: 0.5623 MB / 476.2 MB, free: 1.5 MB / 382.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.001159/0.4019, allocations: 0.7832 MB / 477 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.4038, allocations: 0.889 MB / 477.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4038, allocations: 0 / 477.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009489/0.4047, allocations: 0.5005 MB / 478.3 MB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/0.4076, allocations: 0.5822 MB / 478.9 MB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.4131, allocations: 4.755 MB / 483.7 MB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.4141, allocations: 1.6 MB / 485.3 MB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001308/0.4154, allocations: 390.9 kB / 485.7 MB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.4157, allocations: 163.4 kB / 485.8 MB, free: 7.707 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4157, allocations: 0 / 485.8 MB, free: 7.707 MB / 398.1 MB Notification: Performance of Templates: time 0.05513/0.4708, allocations: 32.11 MB / 0.5058 GB, free: 7.699 MB / 430.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/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_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches