Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001463, allocations: 181.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.2 MB / 240.3 MB, free: 11.83 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008996/0.0008996, allocations: 94.83 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002588, allocations: 7.938 kB / 351.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2153, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.3337, allocations: 104.1 MB / 0.4938 GB, free: 8.281 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.3339, allocations: 75.97 kB / 0.4938 GB, free: 8.207 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4063/0.7402, allocations: 138.5 MB / 0.6291 GB, free: 13.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.7403, allocations: 0 / 0.6291 GB, free: 13.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.545e-05/0.7403, allocations: 40 kB / 0.6291 GB, free: 13.49 MB / 410.7 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.005977/0.7463, allocations: 3.246 MB / 0.6323 GB, free: 10.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.7464, allocations: 11.97 kB / 0.6323 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004094/0.7468, allocations: 375.4 kB / 0.6326 GB, free: 9.793 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/0.7503, allocations: 2.233 MB / 0.6348 GB, free: 7.488 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.7503, allocations: 29 kB / 0.6349 GB, free: 7.461 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.7504, allocations: 63.84 kB / 0.6349 GB, free: 7.398 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.7518, allocations: 0.826 MB / 0.6357 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.7519, allocations: 0 / 0.6357 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.7519, allocations: 24 kB / 0.6357 GB, free: 6.516 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.752, allocations: 27.92 kB / 0.6358 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.7534, allocations: 0.8124 MB / 0.6366 GB, free: 5.676 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004678/0.7581, allocations: 2.93 MB / 0.6394 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.7594, allocations: 0.7403 MB / 0.6402 GB, free: 1.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2126/0.9719, allocations: 35.8 MB / 0.6751 GB, free: 89.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006855/0.9727, allocations: 376.5 kB / 0.6755 GB, free: 89.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.9727, allocations: 5.656 kB / 0.6755 GB, free: 89.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002839/0.9755, allocations: 1.456 MB / 0.6769 GB, free: 88.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.9756, allocations: 267.9 kB / 0.6772 GB, free: 88.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.9782, allocations: 2.333 MB / 0.6794 GB, free: 88.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.516e-05/0.9783, allocations: 35.42 kB / 0.6795 GB, free: 88.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009902/0.9793, allocations: 1.387 MB / 0.6808 GB, free: 87.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.9794, allocations: 168.2 kB / 0.681 GB, free: 87.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.9795, allocations: 15.22 kB / 0.681 GB, free: 87.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.9795, allocations: 341.9 kB / 0.6813 GB, free: 87.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.9801, allocations: 255.9 kB / 0.6816 GB, free: 87.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006495/0.9807, allocations: 0.6511 MB / 0.6822 GB, free: 87.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005817/0.9813, allocations: 344.3 kB / 0.6825 GB, free: 87.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.9813, allocations: 6.906 kB / 0.6825 GB, free: 87.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001973/0.9833, allocations: 1.321 MB / 0.6838 GB, free: 86.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.9834, allocations: 9.844 kB / 0.6838 GB, free: 86.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.9835, allocations: 83.83 kB / 0.6839 GB, free: 86.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004783/0.984, allocations: 276 kB / 0.6842 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.9845, allocations: 177 kB / 0.6843 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000798/0.9853, allocations: 0.8765 MB / 0.6852 GB, free: 86.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.9866, allocations: 128.5 kB / 0.6853 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.9867, allocations: 67.89 kB / 0.6854 GB, free: 86.3 MB / 442.7 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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.001045/0.9878, allocations: 430.7 kB / 0.6858 GB, free: 86.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.9881, allocations: 370.1 kB / 0.6862 GB, free: 86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.9911, allocations: 1.334 MB / 0.6875 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.9912, allocations: 6.344 kB / 0.6875 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.9912, allocations: 3.953 kB / 0.6875 GB, free: 85.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.9912, allocations: 7.812 kB / 0.6875 GB, free: 85.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.995, allocations: 2.261 MB / 0.6897 GB, free: 85.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.652e-05/0.9951, allocations: 71.3 kB / 0.6898 GB, free: 85.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.9954, allocations: 75.36 kB / 0.6898 GB, free: 85.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003931/0.9958, allocations: 253.7 kB / 0.6901 GB, free: 85.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.9959, allocations: 37.05 kB / 0.6901 GB, free: 85.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006734/0.9966, allocations: 0.8599 MB / 0.6909 GB, free: 84.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.9966, allocations: 5.734 kB / 0.6909 GB, free: 84.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.9983, allocations: 1.273 MB / 0.6922 GB, free: 84.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008202/0.9991, allocations: 467.5 kB / 0.6926 GB, free: 84.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.9994, allocations: 16.25 kB / 0.6926 GB, free: 84.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006862/1, allocations: 46.64 kB / 0.6927 GB, free: 84.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/1, allocations: 70.03 kB / 0.6928 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/1, allocations: 37.33 kB / 0.6928 GB, free: 84.13 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002059/1.002, allocations: 1.788 MB / 0.6945 GB, free: 83.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.002, allocations: 0 / 0.6945 GB, free: 83.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00142/1.004, allocations: 0.6209 MB / 0.6951 GB, free: 83.95 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00111/1.005, allocations: 0.8549 MB / 0.696 GB, free: 83.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/1.006, allocations: 0.8794 MB / 0.6968 GB, free: 83.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.007, allocations: 0 / 0.6968 GB, free: 83.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007739/1.007, allocations: 0.4977 MB / 0.6973 GB, free: 83.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/1.009, allocations: 0.5614 MB / 0.6979 GB, free: 83.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/1.015, allocations: 4.421 MB / 0.7022 GB, free: 81.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009031/1.016, allocations: 1.654 MB / 0.7038 GB, free: 80.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00128/1.017, allocations: 343.8 kB / 0.7041 GB, free: 80.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/1.017, allocations: 141.1 kB / 0.7043 GB, free: 80.65 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/1.017, allocations: 3.812 kB / 0.7043 GB, free: 80.65 MB / 442.7 MB Notification: Performance of Templates: time 0.04574/1.063, allocations: 31.44 MB / 0.735 GB, free: 77.69 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches