Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 202.7 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 245.4 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007687/0.0007686, allocations: 92.84 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002181, allocations: 11.98 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1819, allocations: 51.29 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.3169, allocations: 104.9 MB / 0.5015 GB, free: 2.598 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.3172, allocations: 71.91 kB / 0.5016 GB, free: 2.527 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4027/0.7199, allocations: 136.7 MB / 0.6351 GB, free: 6.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7199, allocations: 4 kB / 0.6351 GB, free: 6.395 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.431e-05/0.72, allocations: 44 kB / 0.6351 GB, free: 6.352 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.00594/0.7259, allocations: 3.203 MB / 0.6382 GB, free: 3.078 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.726, allocations: 8.031 kB / 0.6383 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006303/0.7266, allocations: 383.7 kB / 0.6386 GB, free: 2.691 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/0.7304, allocations: 2.411 MB / 0.641 GB, free: 208 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.7305, allocations: 29 kB / 0.641 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.7306, allocations: 55.91 kB / 0.6411 GB, free: 124 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.7321, allocations: 0.8261 MB / 0.6419 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.7321, allocations: 0 / 0.6419 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.731e-05/0.7322, allocations: 24 kB / 0.6419 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.7322, allocations: 23.92 kB / 0.6419 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.7337, allocations: 0.8242 MB / 0.6427 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005417/0.7392, allocations: 2.907 MB / 0.6456 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.7405, allocations: 0.7362 MB / 0.6463 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009862/0.7415, allocations: 0.6724 MB / 0.6469 GB, free: 9.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.211/0.9525, allocations: 36.21 MB / 0.6823 GB, free: 78.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006595/0.9532, allocations: 382.7 kB / 0.6827 GB, free: 78.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.9532, allocations: 0 / 0.6827 GB, free: 78.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002734/0.956, allocations: 1.465 MB / 0.6841 GB, free: 78.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.9561, allocations: 278 kB / 0.6843 GB, free: 78.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.9589, allocations: 2.762 MB / 0.687 GB, free: 77.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/0.9589, allocations: 40.38 kB / 0.6871 GB, free: 77.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008643/0.9598, allocations: 1.387 MB / 0.6884 GB, free: 77.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.9599, allocations: 163.3 kB / 0.6886 GB, free: 77.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.96, allocations: 13.91 kB / 0.6886 GB, free: 77.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.151e-05/0.96, allocations: 336.9 kB / 0.6889 GB, free: 77.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005117/0.9606, allocations: 260.9 kB / 0.6892 GB, free: 77.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/0.9612, allocations: 0.6535 MB / 0.6898 GB, free: 76.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.9624, allocations: 0.9216 MB / 0.6907 GB, free: 76.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.9624, allocations: 3.969 kB / 0.6907 GB, free: 76.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002164/0.9646, allocations: 1.317 MB / 0.692 GB, free: 75.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.9646, allocations: 10.28 kB / 0.692 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.241e-05/0.9647, allocations: 79 kB / 0.6921 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.9652, allocations: 280.8 kB / 0.6924 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.9657, allocations: 183 kB / 0.6925 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006895/0.9664, allocations: 0.8755 MB / 0.6934 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.9675, allocations: 127.6 kB / 0.6935 GB, free: 75.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.631e-05/0.9676, allocations: 66.69 kB / 0.6936 GB, free: 75.42 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.0007758/0.9684, allocations: 428.8 kB / 0.694 GB, free: 75.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.9686, allocations: 363.2 kB / 0.6943 GB, free: 75.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002711/0.9714, allocations: 1.323 MB / 0.6956 GB, free: 75.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.9714, allocations: 3.812 kB / 0.6956 GB, free: 75.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.9714, allocations: 0 / 0.6956 GB, free: 75.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.9714, allocations: 3.703 kB / 0.6956 GB, free: 75.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.9745, allocations: 2.241 MB / 0.6978 GB, free: 74.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-05/0.9746, allocations: 75.84 kB / 0.6979 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.9749, allocations: 78.25 kB / 0.698 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003934/0.9753, allocations: 261.4 kB / 0.6982 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-05/0.9754, allocations: 30.47 kB / 0.6982 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006794/0.976, allocations: 0.8539 MB / 0.6991 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.9761, allocations: 6.969 kB / 0.6991 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.9777, allocations: 1.169 MB / 0.7002 GB, free: 73.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006835/0.9784, allocations: 469.3 kB / 0.7007 GB, free: 73.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.9786, allocations: 17.31 kB / 0.7007 GB, free: 73.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000655/0.9793, allocations: 43.91 kB / 0.7007 GB, free: 73.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.9794, allocations: 66.81 kB / 0.7008 GB, free: 73.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.447e-05/0.9795, allocations: 39.66 kB / 0.7008 GB, free: 73.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001983/0.9815, allocations: 1.79 MB / 0.7026 GB, free: 73.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9815, allocations: 0 / 0.7026 GB, free: 73.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001247/0.9828, allocations: 0.614 MB / 0.7032 GB, free: 73.2 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.0009946/0.9838, allocations: 0.8693 MB / 0.704 GB, free: 73.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.9853, allocations: 0.8749 MB / 0.7049 GB, free: 72.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.9853, allocations: 3.781 kB / 0.7049 GB, free: 72.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007602/0.9861, allocations: 0.4962 MB / 0.7054 GB, free: 72.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/0.9888, allocations: 0.5553 MB / 0.7059 GB, free: 72.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.9934, allocations: 4.491 MB / 0.7103 GB, free: 70.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007469/0.9942, allocations: 1.6 MB / 0.7119 GB, free: 69.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.9944, allocations: 147.2 kB / 0.712 GB, free: 69.89 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/0.9944, allocations: 0 / 0.712 GB, free: 69.89 MB / 442.7 MB Notification: Performance of Templates: time 0.05128/1.046, allocations: 46.68 MB / 0.7576 GB, free: 51.77 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches