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.001077/0.001077, allocations: 97.36 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002064/0.0002064, allocations: 4 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08249/0.08271, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009596/0.09234, allocations: 11.25 MB / 369.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1602/0.2526, allocations: 17.48 MB / 386.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.2544, allocations: 67 kB / 386.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.2573, allocations: 0.8903 MB / 387.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007465/0.2647, allocations: 2.057 MB / 389.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004877/0.2696, allocations: 1.171 MB / 391 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.2806, allocations: 6.135 MB / 397.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006616/0.2813, allocations: 399.8 kB / 397.5 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.283, allocations: 0.9087 MB / 398.4 MB, free: 184 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.2843, allocations: 0.9619 MB / 399.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.2845, allocations: 43.88 kB / 399.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004837/0.2893, allocations: 1.427 MB / 400.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004024/0.2897, allocations: 259.1 kB / 401.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009013/0.2906, allocations: 0.5931 MB / 401.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.2934, allocations: 2.508 MB / 404.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2934, allocations: 2.906 kB / 404.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2934, allocations: 0 / 404.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001125/0.2935, allocations: 0 / 404.2 MB, free: 12.9 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.004752/0.2983, allocations: 3.101 MB / 407.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2983, allocations: 15.03 kB / 407.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003715/0.2987, allocations: 369.4 kB / 407.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/0.3023, allocations: 2.343 MB / 410 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.3024, allocations: 37 kB / 410.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3025, allocations: 55.94 kB / 410.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3038, allocations: 0.7109 MB / 410.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3038, allocations: 0 / 410.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-05/0.3039, allocations: 20 kB / 410.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.3039, allocations: 19.98 kB / 410.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.3054, allocations: 0.828 MB / 411.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004728/0.3101, allocations: 2.887 MB / 414.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3114, allocations: 0.7399 MB / 415.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02969/0.3411, allocations: 30.87 MB / 446.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007812/0.3419, allocations: 381.6 kB / 446.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.975e-06/0.3419, allocations: 0 / 446.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003268/0.3452, allocations: 1.447 MB / 448 MB, free: 13.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.3452, allocations: 59.41 kB / 448.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/0.3484, allocations: 2.76 MB / 450.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.762e-05/0.3485, allocations: 37.7 kB / 450.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.3497, allocations: 1.383 MB / 452.2 MB, free: 9.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.3498, allocations: 173.7 kB / 452.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.3499, allocations: 12 kB / 452.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.35, allocations: 345.9 kB / 452.8 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006055/0.3506, allocations: 257.8 kB / 453 MB, free: 8.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007741/0.3514, allocations: 0.6086 MB / 453.6 MB, free: 7.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006557/0.3521, allocations: 336.2 kB / 454 MB, free: 7.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3521, allocations: 4 kB / 454 MB, free: 7.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00223/0.3543, allocations: 1.319 MB / 455.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.3543, allocations: 12 kB / 455.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001044/0.3544, allocations: 83.98 kB / 455.4 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/0.355, allocations: 272.8 kB / 455.6 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/0.3556, allocations: 171.7 kB / 455.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009137/0.3565, allocations: 0.888 MB / 456.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3575, allocations: 119 kB / 456.8 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.696e-05/0.3576, allocations: 64 kB / 456.9 MB, free: 4.688 MB / 366.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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.000674/0.3583, allocations: 426.6 kB / 457.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003211/0.3586, allocations: 359.6 kB / 457.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.3618, allocations: 1.326 MB / 459 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3618, allocations: 4 kB / 459 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3618, allocations: 0 / 459 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3618, allocations: 3.984 kB / 459 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.3653, allocations: 2.228 MB / 461.2 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-05/0.3654, allocations: 64 kB / 461.3 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.3657, allocations: 76.06 kB / 461.3 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000473/0.3662, allocations: 264.7 kB / 461.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.3663, allocations: 36.44 kB / 461.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008331/0.3671, allocations: 0.8591 MB / 462.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3671, allocations: 3.953 kB / 462.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.3691, allocations: 1.273 MB / 463.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007292/0.3698, allocations: 460.5 kB / 464.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/0.3701, allocations: 8.875 kB / 464.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006973/0.3708, allocations: 39.97 kB / 464.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.371, allocations: 67.81 kB / 464.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.6e-05/0.371, allocations: 40 kB / 464.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002171/0.3732, allocations: 1.792 MB / 466.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3732, allocations: 4 kB / 466.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001298/0.3745, allocations: 0.5661 MB / 466.7 MB, free: 10.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009749/0.3755, allocations: 0.7348 MB / 467.5 MB, free: 9.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.3774, allocations: 0.8773 MB / 468.3 MB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3774, allocations: 0 / 468.3 MB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009688/0.3784, allocations: 0.5005 MB / 468.8 MB, free: 8.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.3805, allocations: 0.5745 MB / 469.4 MB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005388/0.3859, allocations: 4.42 MB / 473.8 MB, free: 3.375 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.387, allocations: 1.671 MB / 475.5 MB, free: 1.676 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001342/0.3883, allocations: 386.9 kB / 475.9 MB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.3886, allocations: 155.4 kB / 476 MB, free: 1.141 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3886, allocations: 0 / 476 MB, free: 1.141 MB / 382.1 MB Notification: Performance of Templates: time 0.05118/0.4398, allocations: 30.22 MB / 0.4944 GB, free: 3.035 MB / 414.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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches