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.001522/0.001522, allocations: 104.4 kB / 18.36 MB, free: 4.641 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.001671/0.001671, allocations: 191 kB / 19.29 MB, free: 3.715 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.332/1.332, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.002027/0.002027, allocations: 51.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08259, allocations: 46.64 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0129/0.09552, allocations: 13.35 MB / 342.1 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02132/0.1169, allocations: 19.33 MB / 361.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001703/0.1186, allocations: 122.9 kB / 361.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.1211, allocations: 1.093 MB / 362.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0057/0.1269, allocations: 2.231 MB / 364.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.1303, allocations: 1.373 MB / 366.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008064/0.1384, allocations: 6.219 MB / 372.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005674/0.139, allocations: 424.4 kB / 372.9 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.14, allocations: 0.9525 MB / 373.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.141, allocations: 1.025 MB / 374.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.1412, allocations: 71.94 kB / 374.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.1442, allocations: 1.167 MB / 376.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002724/0.1445, allocations: 301.8 kB / 376.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.1455, allocations: 1.308 MB / 377.7 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1356/0.2811, allocations: 3.663 MB / 381.3 MB, free: 25.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2811, allocations: 0 / 381.3 MB, free: 25.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2811, allocations: 0.9688 kB / 381.3 MB, free: 25.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.055e-05/0.2812, allocations: 0 / 381.3 MB, free: 25.12 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.004964/0.2862, allocations: 3.52 MB / 384.9 MB, free: 23.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2862, allocations: 8.844 kB / 384.9 MB, free: 23.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003814/0.2866, allocations: 374.2 kB / 385.2 MB, free: 22.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003582/0.2902, allocations: 2.518 MB / 387.8 MB, free: 22.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.2902, allocations: 35.28 kB / 387.8 MB, free: 22.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.2904, allocations: 48.58 kB / 387.8 MB, free: 22.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2916, allocations: 0.701 MB / 388.5 MB, free: 22.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2916, allocations: 0.875 kB / 388.5 MB, free: 22.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.439e-05/0.2917, allocations: 20.98 kB / 388.6 MB, free: 22.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.2917, allocations: 24.64 kB / 388.6 MB, free: 22.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.2931, allocations: 0.791 MB / 389.4 MB, free: 22.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004972/0.2981, allocations: 2.885 MB / 392.3 MB, free: 21.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.2993, allocations: 0.6942 MB / 393 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009181/0.3002, allocations: 0.6551 MB / 393.6 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/0.3234, allocations: 30.16 MB / 423.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006886/0.3241, allocations: 370.5 kB / 424.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.3241, allocations: 0 / 424.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003017/0.3271, allocations: 1.4 MB / 425.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.3272, allocations: 59.41 kB / 425.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003276/0.3304, allocations: 2.816 MB / 428.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.3305, allocations: 38.8 kB / 428.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3316, allocations: 1.393 MB / 429.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.3317, allocations: 161.5 kB / 430 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002815/0.332, allocations: 226.1 kB / 430.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3322, allocations: 341.9 kB / 430.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005487/0.3327, allocations: 233.9 kB / 430.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007774/0.3335, allocations: 0.5993 MB / 431.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.3348, allocations: 0.8792 MB / 432.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3348, allocations: 4 kB / 432.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002023/0.3369, allocations: 1.281 MB / 433.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3369, allocations: 8 kB / 433.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/0.337, allocations: 87.98 kB / 433.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005179/0.3375, allocations: 278 kB / 433.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.3381, allocations: 168.2 kB / 434.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008664/0.339, allocations: 0.884 MB / 435 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.34, allocations: 107 kB / 435.1 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.991e-05/0.3401, allocations: 64 kB / 435.1 MB, free: 424 kB / 334.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.0005836/0.3407, allocations: 423.5 kB / 435.5 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.3411, allocations: 363.8 kB / 435.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002584/0.3437, allocations: 1.285 MB / 437.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.3437, allocations: 8 kB / 437.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3437, allocations: 0.875 kB / 437.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3437, allocations: 0 / 437.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.3473, allocations: 2.202 MB / 439.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.352e-05/0.3474, allocations: 72 kB / 439.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/0.3477, allocations: 59.94 kB / 439.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004529/0.3482, allocations: 272.2 kB / 439.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.678e-05/0.3482, allocations: 31.98 kB / 439.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008255/0.3491, allocations: 0.8706 MB / 440.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3491, allocations: 0 / 440.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.3508, allocations: 1.134 MB / 441.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008613/0.3517, allocations: 472.4 kB / 442.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.352, allocations: 15.98 kB / 442.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.3527, allocations: 23.97 kB / 442.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.3528, allocations: 67.88 kB / 442.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.252e-05/0.3529, allocations: 36 kB / 442.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00223/0.3552, allocations: 1.832 MB / 444.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3552, allocations: 0 / 444.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001298/0.3565, allocations: 0.5778 MB / 444.8 MB, free: 6.574 MB / 350.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.001044/0.3575, allocations: 0.7728 MB / 445.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.3592, allocations: 0.8481 MB / 446.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3592, allocations: 4 kB / 446.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009188/0.3601, allocations: 495.9 kB / 446.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.3617, allocations: 0.508 MB / 447.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005083/0.3668, allocations: 3.921 MB / 451.4 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009685/0.3678, allocations: 1.61 MB / 453 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.3688, allocations: 399.9 kB / 453.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.369, allocations: 167.3 kB / 453.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3691, allocations: 0 / 453.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of Templates: time 0.05235/0.4214, allocations: 33.38 MB / 486.9 MB, free: 12.73 MB / 398.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/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