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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 176.1 kB / 8.478 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009591/0.0009592, allocations: 87.28 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.063e-06/7.083e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07944/0.07946, allocations: 47.57 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2558/0.3353, allocations: 101.3 MB / 463.9 MB, free: 5.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.3356, allocations: 68.62 kB / 463.9 MB, free: 5.426 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2426/0.5782, allocations: 118.7 MB / 0.569 GB, free: 7.195 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.048e-05/0.5783, allocations: 44 kB / 0.569 GB, free: 7.152 MB / 426.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.004368/0.5826, allocations: 2.63 MB / 0.5716 GB, free: 4.473 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.5827, allocations: 8.031 kB / 0.5716 GB, free: 4.465 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.5831, allocations: 379.4 kB / 0.572 GB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/0.5865, allocations: 2.232 MB / 0.5741 GB, free: 1.781 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.5865, allocations: 12 kB / 0.5741 GB, free: 1.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.5867, allocations: 39.89 kB / 0.5742 GB, free: 1.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001056/0.5877, allocations: 0.6584 MB / 0.5748 GB, free: 1.074 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.5887, allocations: 0.6992 MB / 0.5755 GB, free: 352 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.5888, allocations: 3.938 kB / 0.5755 GB, free: 348 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.5888, allocations: 8 kB / 0.5755 GB, free: 340 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.478e-05/0.5889, allocations: 23.98 kB / 0.5755 GB, free: 316 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1621/0.751, allocations: 2.827 MB / 0.5783 GB, free: 134.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.7516, allocations: 355.3 kB / 0.5786 GB, free: 134.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007305/0.7523, allocations: 0.5458 MB / 0.5792 GB, free: 134.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02862/0.781, allocations: 35.94 MB / 0.6143 GB, free: 107.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003879/0.7814, allocations: 284.2 kB / 0.6145 GB, free: 107.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.7814, allocations: 0 / 0.6145 GB, free: 107.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001414/0.7828, allocations: 0.8586 MB / 0.6154 GB, free: 107.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.7829, allocations: 273.5 kB / 0.6156 GB, free: 107.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.7856, allocations: 2.1 MB / 0.6177 GB, free: 106.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.7857, allocations: 28.7 kB / 0.6177 GB, free: 106.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003398/0.786, allocations: 0.6142 MB / 0.6183 GB, free: 106.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.7861, allocations: 162.9 kB / 0.6185 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.7862, allocations: 0 / 0.6185 GB, free: 106.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.7863, allocations: 337.5 kB / 0.6188 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.7865, allocations: 168.9 kB / 0.619 GB, free: 106.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/0.7869, allocations: 0.5621 MB / 0.6195 GB, free: 105.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004189/0.7874, allocations: 257.2 kB / 0.6198 GB, free: 105.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.7874, allocations: 7.312 kB / 0.6198 GB, free: 105.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00141/0.7888, allocations: 1.081 MB / 0.6208 GB, free: 105.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.7888, allocations: 8.5 kB / 0.6208 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/0.7889, allocations: 90.36 kB / 0.6209 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/0.7895, allocations: 276 kB / 0.6212 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005693/0.79, allocations: 182.5 kB / 0.6213 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000931/0.791, allocations: 0.9391 MB / 0.6223 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.7921, allocations: 109.7 kB / 0.6224 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.7922, allocations: 66.38 kB / 0.6224 GB, free: 105 MB / 426.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 () * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.7923, allocations: 150.6 kB / 0.6226 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.7926, allocations: 365.6 kB / 0.6229 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/0.7962, allocations: 1.455 MB / 0.6243 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.7963, allocations: 7.625 kB / 0.6244 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7963, allocations: 0 / 0.6244 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.7963, allocations: 3.047 kB / 0.6244 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.7993, allocations: 2.004 MB / 0.6263 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-05/0.7994, allocations: 73.33 kB / 0.6264 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.7997, allocations: 78.14 kB / 0.6265 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004753/0.8002, allocations: 262.3 kB / 0.6267 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.8003, allocations: 32.33 kB / 0.6267 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009066/0.8012, allocations: 0.9266 MB / 0.6276 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.8012, allocations: 2.094 kB / 0.6276 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001306/0.8025, allocations: 1.122 MB / 0.6287 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007452/0.8033, allocations: 471.2 kB / 0.6292 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/0.8037, allocations: 3.688 kB / 0.6292 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007518/0.8044, allocations: 49.48 kB / 0.6292 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.8046, allocations: 57.94 kB / 0.6293 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.465e-05/0.8047, allocations: 46.53 kB / 0.6293 GB, free: 102.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002157/0.8068, allocations: 1.557 MB / 0.6309 GB, free: 102.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00209/0.8089, allocations: 0.5906 MB / 0.6314 GB, free: 102.7 MB / 426.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) * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001484/0.8104, allocations: 0.963 MB / 0.6324 GB, free: 102.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.8116, allocations: 0.6832 MB / 0.633 GB, free: 102.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.8117, allocations: 1.188 kB / 0.633 GB, free: 102.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.8123, allocations: 426.6 kB / 0.6335 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.8137, allocations: 449.4 kB / 0.6339 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.8186, allocations: 2.762 MB / 0.6366 GB, free: 101.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.8197, allocations: 1.822 MB / 0.6384 GB, free: 100.6 MB / 426.7 MB Notification: Performance of SimCode: time 7.91e-07/0.8197, allocations: 0 / 0.6384 GB, free: 100.6 MB / 426.7 MB Notification: Performance of Templates: time 0.04995/0.8697, allocations: 29.7 MB / 0.6674 GB, free: 95.43 MB / 426.7 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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches