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.001174/0.001174, allocations: 94.59 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 200.6 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002199/0.0002198, allocations: 4 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.1, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1798/0.2799, allocations: 13.35 MB / 373.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0198/0.2997, allocations: 20.23 MB / 393.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.3012, allocations: 62.75 kB / 393.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.3042, allocations: 0.989 MB / 394.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008208/0.3124, allocations: 1.896 MB / 396.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005366/0.3178, allocations: 1.194 MB / 397.6 MB, free: 96 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.3285, allocations: 6.332 MB / 404 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009003/0.3295, allocations: 409 kB / 404.4 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.3315, allocations: 1.001 MB / 405.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001282/0.3328, allocations: 1.017 MB / 406.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.333, allocations: 40.78 kB / 406.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/0.3376, allocations: 1.459 MB / 407.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003432/0.3379, allocations: 278.9 kB / 408.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.3395, allocations: 1.295 MB / 409.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002692/0.3422, allocations: 2.605 MB / 412.1 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3423, allocations: 4 kB / 412.1 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3423, allocations: 0 / 412.1 MB, free: 7.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.178e-05/0.3423, allocations: 0 / 412.1 MB, free: 7.652 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.004341/0.3467, allocations: 3.065 MB / 415.1 MB, free: 4.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3467, allocations: 11.97 kB / 415.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003692/0.3471, allocations: 371.5 kB / 415.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.3505, allocations: 2.52 MB / 418 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.3506, allocations: 33 kB / 418 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3507, allocations: 55.89 kB / 418.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.352, allocations: 0.7187 MB / 418.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3521, allocations: 3.938 kB / 418.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.923e-05/0.3521, allocations: 23.98 kB / 418.8 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.3522, allocations: 19.98 kB / 418.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.3537, allocations: 0.8281 MB / 419.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.3585, allocations: 2.903 MB / 422.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.3599, allocations: 0.7496 MB / 423.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.361, allocations: 0.6821 MB / 424 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02857/0.3895, allocations: 30.74 MB / 454.8 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007888/0.3904, allocations: 381.6 kB / 455.1 MB, free: 8.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.3904, allocations: 0 / 455.1 MB, free: 8.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003298/0.3937, allocations: 1.458 MB / 456.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.3937, allocations: 71.28 kB / 456.7 MB, free: 6.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/0.3971, allocations: 2.799 MB / 459.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.769e-05/0.3972, allocations: 33.7 kB / 459.5 MB, free: 3.613 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.3985, allocations: 1.383 MB / 460.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.3986, allocations: 165.7 kB / 461 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3987, allocations: 73.67 kB / 461.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3989, allocations: 338 kB / 461.4 MB, free: 1.645 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000598/0.3995, allocations: 261.9 kB / 461.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008651/0.4003, allocations: 0.6125 MB / 462.3 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.4018, allocations: 0.9232 MB / 463.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4018, allocations: 4 kB / 463.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002245/0.4041, allocations: 1.314 MB / 464.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4041, allocations: 8.969 kB / 464.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.4042, allocations: 83.98 kB / 464.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005232/0.4047, allocations: 280.6 kB / 464.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.4053, allocations: 180.3 kB / 465.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008939/0.4062, allocations: 0.8879 MB / 466 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009402/0.4072, allocations: 115.2 kB / 466.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.4073, allocations: 64 kB / 466.2 MB, free: 12.55 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.0007272/0.408, allocations: 422.5 kB / 466.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003466/0.4084, allocations: 363.6 kB / 466.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/0.4116, allocations: 1.322 MB / 468.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4116, allocations: 8 kB / 468.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4116, allocations: 0 / 468.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.4116, allocations: 7.875 kB / 468.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/0.4151, allocations: 2.221 MB / 470.5 MB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.657e-05/0.4152, allocations: 71.98 kB / 470.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.4155, allocations: 76.02 kB / 470.6 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004717/0.416, allocations: 264.7 kB / 470.9 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.4161, allocations: 32 kB / 470.9 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009067/0.417, allocations: 0.8674 MB / 471.8 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.417, allocations: 4.031 kB / 471.8 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.419, allocations: 1.172 MB / 473 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007208/0.4197, allocations: 472.4 kB / 473.4 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.42, allocations: 8 kB / 473.4 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006638/0.4206, allocations: 47.95 kB / 473.5 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.4208, allocations: 59.94 kB / 473.5 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-05/0.4209, allocations: 39.98 kB / 473.6 MB, free: 4.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.4233, allocations: 1.82 MB / 475.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.4233, allocations: 0 / 475.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001343/0.4247, allocations: 0.5661 MB / 476 MB, free: 2.547 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.001215/0.4259, allocations: 0.7801 MB / 476.7 MB, free: 1.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.4277, allocations: 0.8851 MB / 477.6 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.4278, allocations: 3.859 kB / 477.6 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000929/0.4287, allocations: 0.5043 MB / 478.1 MB, free: 328 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/0.4316, allocations: 0.5706 MB / 478.7 MB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006096/0.4377, allocations: 4.827 MB / 483.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.4388, allocations: 1.597 MB / 485.1 MB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.4391, allocations: 163.4 kB / 485.3 MB, free: 9.074 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4392, allocations: 7.938 kB / 485.3 MB, free: 9.066 MB / 398.1 MB Notification: Performance of Templates: time 0.06474/0.5039, allocations: 47.4 MB / 0.5202 GB, free: 9.695 MB / 446.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