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.001886/0.001886, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001794/0.001794, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.575/1.575, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001242/0.001242, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08538, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1738/0.2593, allocations: 13.35 MB / 388.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02486/0.2842, allocations: 19.33 MB / 407.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002964/0.2872, allocations: 124.2 kB / 407.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004096/0.2914, allocations: 1.095 MB / 409 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009495/0.3009, allocations: 2.259 MB / 411.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004838/0.3057, allocations: 1.383 MB / 412.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.316, allocations: 6.211 MB / 418.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007916/0.3169, allocations: 433.3 kB / 419.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.3185, allocations: 0.9761 MB / 420.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.3197, allocations: 1.036 MB / 421.3 MB, free: 368 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.3198, allocations: 68.75 kB / 421.4 MB, free: 368 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004247/0.3241, allocations: 1.151 MB / 422.5 MB, free: 32 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003775/0.3245, allocations: 311.1 kB / 422.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.326, allocations: 1.316 MB / 424.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00545/0.3315, allocations: 3.658 MB / 427.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3315, allocations: 4 kB / 427.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3315, allocations: 0 / 427.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.3316, allocations: 0 / 427.8 MB, free: 10.76 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.004727/0.3363, allocations: 3.51 MB / 431.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3364, allocations: 8.031 kB / 431.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004167/0.3368, allocations: 379.4 kB / 431.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003327/0.3401, allocations: 2.509 MB / 434.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.3402, allocations: 42.12 kB / 434.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3403, allocations: 47.89 kB / 434.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3417, allocations: 0.7108 MB / 435 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3417, allocations: 0 / 435 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.3418, allocations: 16 kB / 435 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.3418, allocations: 23.98 kB / 435 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.3433, allocations: 0.7851 MB / 435.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004643/0.3479, allocations: 2.895 MB / 438.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3492, allocations: 0.7053 MB / 439.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000969/0.3502, allocations: 0.6525 MB / 440.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02857/0.3788, allocations: 30.15 MB / 470.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007641/0.3796, allocations: 369.2 kB / 470.6 MB, free: 11.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.464e-06/0.3796, allocations: 0 / 470.6 MB, free: 11.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003106/0.3827, allocations: 1.396 MB / 472 MB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.3828, allocations: 59.34 kB / 472 MB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.386, allocations: 2.816 MB / 474.9 MB, free: 7.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.386, allocations: 37.69 kB / 474.9 MB, free: 7.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.3872, allocations: 1.387 MB / 476.3 MB, free: 5.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3873, allocations: 173.7 kB / 476.5 MB, free: 5.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.3876, allocations: 226.1 kB / 476.7 MB, free: 5.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3877, allocations: 338 kB / 477 MB, free: 5.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005545/0.3883, allocations: 233.9 kB / 477.2 MB, free: 4.867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/0.389, allocations: 0.5968 MB / 477.8 MB, free: 4.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.3904, allocations: 0.8802 MB / 478.7 MB, free: 3.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.3904, allocations: 0 / 478.7 MB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002213/0.3927, allocations: 1.287 MB / 480 MB, free: 1.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.3927, allocations: 12 kB / 480 MB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/0.3928, allocations: 87.92 kB / 480.1 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005557/0.3934, allocations: 277.1 kB / 480.4 MB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/0.394, allocations: 163.7 kB / 480.5 MB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009646/0.3949, allocations: 0.8862 MB / 481.4 MB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009279/0.3959, allocations: 103.7 kB / 481.5 MB, free: 208 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.396, allocations: 68 kB / 481.6 MB, free: 140 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.0007024/0.3967, allocations: 429.4 kB / 482 MB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003424/0.397, allocations: 367.5 kB / 482.4 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/0.3998, allocations: 1.276 MB / 483.6 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.3998, allocations: 7.938 kB / 483.6 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3998, allocations: 3.984 kB / 483.6 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3998, allocations: 3.625 kB / 483.7 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.4032, allocations: 2.209 MB / 485.9 MB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-05/0.4033, allocations: 71.94 kB / 485.9 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.4036, allocations: 59.94 kB / 486 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004802/0.4041, allocations: 264.9 kB / 486.3 MB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.4042, allocations: 35.98 kB / 486.3 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008859/0.4051, allocations: 0.8607 MB / 487.1 MB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4051, allocations: 4.062 kB / 487.1 MB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.4069, allocations: 1.133 MB / 488.3 MB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.4076, allocations: 468.4 kB / 488.7 MB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.4079, allocations: 15.98 kB / 488.8 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006351/0.4085, allocations: 35.91 kB / 488.8 MB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.4087, allocations: 63.88 kB / 488.9 MB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-05/0.4088, allocations: 40 kB / 488.9 MB, free: 8.629 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.4112, allocations: 1.84 MB / 490.7 MB, free: 6.785 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4112, allocations: 0 / 490.7 MB, free: 6.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001247/0.4124, allocations: 0.57 MB / 491.3 MB, free: 6.215 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.001064/0.4135, allocations: 0.7767 MB / 492.1 MB, free: 5.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.4153, allocations: 0.8501 MB / 492.9 MB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4153, allocations: 4.125 kB / 492.9 MB, free: 4.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008994/0.4162, allocations: 0.4923 MB / 493.4 MB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.418, allocations: 0.5037 MB / 493.9 MB, free: 3.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005734/0.4237, allocations: 3.917 MB / 497.8 MB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.4249, allocations: 1.616 MB / 499.5 MB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.426, allocations: 383.1 kB / 499.8 MB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.4262, allocations: 163.4 kB / 500 MB, free: 13.38 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4263, allocations: 4 kB / 500 MB, free: 13.38 MB / 430.1 MB Notification: Performance of Templates: time 0.05411/0.4804, allocations: 33.51 MB / 0.521 GB, free: 11.81 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