Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 110.5 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 179.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 59.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09618/0.09838, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1748/0.2733, allocations: 13.35 MB / 388.5 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.2942, allocations: 19.32 MB / 407.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.2967, allocations: 124.9 kB / 407.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003001/0.2998, allocations: 1.087 MB / 409 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008166/0.3079, allocations: 2.232 MB / 411.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005813/0.3138, allocations: 1.373 MB / 412.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.3243, allocations: 6.219 MB / 418.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.325, allocations: 436.3 kB / 419.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.3265, allocations: 0.9694 MB / 420.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.3276, allocations: 1.034 MB / 421.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.3278, allocations: 70.59 kB / 421.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004886/0.3327, allocations: 1.155 MB / 422.5 MB, free: 96 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003282/0.3331, allocations: 310 kB / 422.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.3343, allocations: 1.304 MB / 424.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004977/0.3393, allocations: 3.662 MB / 427.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3393, allocations: 0 / 427.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3393, allocations: 0 / 427.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.491e-05/0.3394, allocations: 4 kB / 427.8 MB, free: 10.84 MB / 350.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.004736/0.3441, allocations: 3.514 MB / 431.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.3442, allocations: 12.03 kB / 431.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.3445, allocations: 375.4 kB / 431.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003212/0.3478, allocations: 2.513 MB / 434.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.3478, allocations: 44.92 kB / 434.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3479, allocations: 51.91 kB / 434.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3493, allocations: 0.6992 MB / 435 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3493, allocations: 0 / 435 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.287e-05/0.3494, allocations: 20 kB / 435 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.3494, allocations: 19.98 kB / 435 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.351, allocations: 0.7889 MB / 435.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.3555, allocations: 2.899 MB / 438.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.3568, allocations: 0.6975 MB / 439.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009968/0.3578, allocations: 0.6556 MB / 440 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02849/0.3863, allocations: 30.15 MB / 470.2 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007889/0.3871, allocations: 361.2 kB / 470.6 MB, free: 11.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3871, allocations: 4 kB / 470.6 MB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003141/0.3903, allocations: 1.402 MB / 472 MB, free: 10.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.3903, allocations: 67.33 kB / 472 MB, free: 10.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/0.3936, allocations: 2.812 MB / 474.8 MB, free: 7.344 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/0.3936, allocations: 33.7 kB / 474.9 MB, free: 7.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.3948, allocations: 1.391 MB / 476.3 MB, free: 5.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.3949, allocations: 173.7 kB / 476.4 MB, free: 5.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/0.3952, allocations: 222.1 kB / 476.6 MB, free: 5.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3954, allocations: 338 kB / 477 MB, free: 5.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005674/0.3959, allocations: 241.8 kB / 477.2 MB, free: 4.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000792/0.3967, allocations: 0.5852 MB / 477.8 MB, free: 4.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.3981, allocations: 0.8841 MB / 478.7 MB, free: 3.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.3981, allocations: 4 kB / 478.7 MB, free: 3.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002177/0.4003, allocations: 1.287 MB / 480 MB, free: 1.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.4003, allocations: 8 kB / 480 MB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/0.4005, allocations: 83.98 kB / 480.1 MB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.401, allocations: 276.8 kB / 480.3 MB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.4016, allocations: 171.6 kB / 480.5 MB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009346/0.4026, allocations: 0.8774 MB / 481.4 MB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009127/0.4035, allocations: 119 kB / 481.5 MB, free: 276 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.315e-05/0.4036, allocations: 60 kB / 481.6 MB, free: 216 kB / 398.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.0006361/0.4042, allocations: 421.5 kB / 482 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.4046, allocations: 371.5 kB / 482.3 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.4073, allocations: 1.276 MB / 483.6 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.4074, allocations: 4 kB / 483.6 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4074, allocations: 4 kB / 483.6 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.4074, allocations: 3.984 kB / 483.6 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.4108, allocations: 2.201 MB / 485.8 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001034/0.4109, allocations: 79.92 kB / 485.9 MB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.4113, allocations: 55.89 kB / 485.9 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004322/0.4117, allocations: 272.8 kB / 486.2 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.237e-05/0.4118, allocations: 32 kB / 486.2 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008708/0.4126, allocations: 0.8607 MB / 487.1 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4127, allocations: 6.156 kB / 487.1 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.4144, allocations: 1.133 MB / 488.2 MB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006164/0.415, allocations: 468.4 kB / 488.7 MB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.4153, allocations: 12 kB / 488.7 MB, free: 8.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006812/0.416, allocations: 31.97 kB / 488.7 MB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.4162, allocations: 59.94 kB / 488.8 MB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.4163, allocations: 43.94 kB / 488.8 MB, free: 8.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002255/0.4186, allocations: 1.836 MB / 490.7 MB, free: 6.875 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4186, allocations: 0 / 490.7 MB, free: 6.875 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001279/0.4199, allocations: 0.57 MB / 491.3 MB, free: 6.305 MB / 414.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.001151/0.421, allocations: 0.781 MB / 492 MB, free: 5.516 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.4228, allocations: 0.8501 MB / 492.9 MB, free: 4.645 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4228, allocations: 0 / 492.9 MB, free: 4.645 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000931/0.4237, allocations: 0.5004 MB / 493.4 MB, free: 4.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.4254, allocations: 0.5108 MB / 493.9 MB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005082/0.4304, allocations: 3.917 MB / 497.8 MB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4315, allocations: 1.612 MB / 499.4 MB, free: 14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009636/0.4325, allocations: 391.1 kB / 499.8 MB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.4327, allocations: 159.4 kB / 500 MB, free: 13.46 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4327, allocations: 0 / 500 MB, free: 13.46 MB / 430.1 MB Notification: Performance of Templates: time 0.05792/0.4907, allocations: 33.52 MB / 0.521 GB, free: 11.88 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches