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.001101/0.001101, allocations: 119.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 60.77 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08479/0.08598, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1666/0.2526, allocations: 14.02 MB / 372.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.2709, allocations: 20.31 MB / 393.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001703/0.2727, allocations: 120.4 kB / 393.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00264/0.2753, allocations: 1.114 MB / 394.5 MB, free: 88 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007367/0.2827, allocations: 2.27 MB / 396.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004651/0.2874, allocations: 1.432 MB / 398.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009944/0.2974, allocations: 6.43 MB / 404.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007228/0.2981, allocations: 430.2 kB / 405 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.2998, allocations: 1.042 MB / 406 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.3012, allocations: 1.061 MB / 407.1 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.3013, allocations: 70.66 kB / 407.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004301/0.3057, allocations: 1.471 MB / 408.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003195/0.306, allocations: 311.1 kB / 409 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001329/0.3073, allocations: 1.296 MB / 410.2 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004312/0.3116, allocations: 3.631 MB / 413.9 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3117, allocations: 3.938 kB / 413.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3117, allocations: 4 kB / 413.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.3117, allocations: 0 / 413.9 MB, free: 3.836 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.004861/0.3166, allocations: 3.506 MB / 417.4 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3166, allocations: 8.031 kB / 417.4 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003657/0.317, allocations: 375.5 kB / 417.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003385/0.3204, allocations: 2.497 MB / 420.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.3205, allocations: 37 kB / 420.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.3206, allocations: 47.98 kB / 420.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3219, allocations: 0.703 MB / 421.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.3219, allocations: 0 / 421.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.322, allocations: 20 kB / 421.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.322, allocations: 19.98 kB / 421.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.3234, allocations: 0.789 MB / 421.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.3282, allocations: 2.879 MB / 424.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.3294, allocations: 0.705 MB / 425.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009507/0.3303, allocations: 0.6518 MB / 426.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02929/0.3596, allocations: 30.72 MB / 456.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007196/0.3604, allocations: 361.6 kB / 457.2 MB, free: 4.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.3604, allocations: 0 / 457.2 MB, free: 4.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00294/0.3633, allocations: 1.391 MB / 458.6 MB, free: 2.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.3634, allocations: 67.33 kB / 458.6 MB, free: 2.504 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.3664, allocations: 2.795 MB / 461.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/0.3665, allocations: 37.7 kB / 461.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.3675, allocations: 1.383 MB / 462.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.3676, allocations: 161.7 kB / 463 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.3679, allocations: 234 kB / 463.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.368, allocations: 337.9 kB / 463.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.3685, allocations: 233.9 kB / 463.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007229/0.3693, allocations: 0.5923 MB / 464.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.3706, allocations: 0.888 MB / 465.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.3706, allocations: 4 kB / 465.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002026/0.3726, allocations: 1.272 MB / 466.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3726, allocations: 8 kB / 466.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/0.3728, allocations: 83.94 kB / 466.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005354/0.3733, allocations: 281 kB / 466.9 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005351/0.3739, allocations: 167.6 kB / 467.1 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008879/0.3748, allocations: 0.8763 MB / 468 MB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008573/0.3756, allocations: 115 kB / 468.1 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.753e-05/0.3757, allocations: 64 kB / 468.1 MB, free: 8.578 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.0006527/0.3764, allocations: 426.5 kB / 468.6 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.3767, allocations: 359.6 kB / 468.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.3792, allocations: 1.269 MB / 470.2 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.3792, allocations: 4 kB / 470.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3793, allocations: 0 / 470.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3793, allocations: 7.922 kB / 470.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.3827, allocations: 2.189 MB / 472.4 MB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.15e-05/0.3828, allocations: 68 kB / 472.4 MB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.3831, allocations: 79.88 kB / 472.5 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004258/0.3836, allocations: 260.8 kB / 472.8 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.3836, allocations: 39.98 kB / 472.8 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008007/0.3844, allocations: 0.8598 MB / 473.7 MB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3844, allocations: 0 / 473.7 MB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.3861, allocations: 1.129 MB / 474.8 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007839/0.3869, allocations: 472.4 kB / 475.3 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.3872, allocations: 11.98 kB / 475.3 MB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006243/0.3878, allocations: 31.97 kB / 475.3 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3879, allocations: 62.83 kB / 475.4 MB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.894e-05/0.388, allocations: 39.98 kB / 475.4 MB, free: 1.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00212/0.3901, allocations: 1.82 MB / 477.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3901, allocations: 0 / 477.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001159/0.3913, allocations: 0.5623 MB / 477.8 MB, free: 14.73 MB / 398.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.0009714/0.3923, allocations: 0.7838 MB / 478.6 MB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.3939, allocations: 0.8458 MB / 479.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3939, allocations: 0 / 479.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.3947, allocations: 0.489 MB / 479.9 MB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.3968, allocations: 0.6084 MB / 480.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004663/0.4014, allocations: 3.902 MB / 484.4 MB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009971/0.4024, allocations: 1.604 MB / 486 MB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008928/0.4033, allocations: 394.9 kB / 486.4 MB, free: 5.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.4036, allocations: 159.4 kB / 486.6 MB, free: 5.812 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4036, allocations: 0 / 486.6 MB, free: 5.812 MB / 398.1 MB Notification: Performance of Templates: time 0.05507/0.4586, allocations: 33.32 MB / 0.5077 GB, free: 4.594 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 -s gbode -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