Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009386/0.0009386, allocations: 202 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 226.5 MB / 245.3 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007065/0.0007066, allocations: 95.58 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000209/0.000209, allocations: 7.984 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1875, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08657/0.2741, allocations: 83.3 MB / 492 MB, free: 8.266 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.2744, allocations: 71.97 kB / 492 MB, free: 8.195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02941/0.3038, allocations: 11.48 MB / 0.4917 GB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3039, allocations: 0 / 0.4917 GB, free: 12.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.454e-05/0.3039, allocations: 16 kB / 0.4917 GB, free: 12.66 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002696/0.3066, allocations: 1.191 MB / 0.4929 GB, free: 11.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3066, allocations: 8.031 kB / 0.4929 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.3069, allocations: 84 kB / 0.493 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006919/0.3076, allocations: 0.491 MB / 0.4935 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.3076, allocations: 45.69 kB / 0.4935 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.654e-05/0.3077, allocations: 56.38 kB / 0.4935 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.3098, allocations: 1.055 MB / 0.4946 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.3098, allocations: 192 / 0.4946 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/0.3099, allocations: 31.94 kB / 0.4946 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.3099, allocations: 16 kB / 0.4946 GB, free: 9.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002802/0.3128, allocations: 1.151 MB / 0.4957 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004466/0.3172, allocations: 3.305 MB / 0.499 GB, free: 4.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.3195, allocations: 1.04 MB / 0.5 GB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.3206, allocations: 497.9 kB / 0.5005 GB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.316e-05/0.3207, allocations: 16.42 kB / 0.5005 GB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.3219, allocations: 0.5127 MB / 0.501 GB, free: 2.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/0.3219, allocations: 4 kB / 0.501 GB, free: 2.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003125/0.325, allocations: 1.271 MB / 0.5022 GB, free: 1.531 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.3252, allocations: 368.3 kB / 0.5026 GB, free: 1.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007131/0.3259, allocations: 0.5693 MB / 0.5031 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.039e-05/0.326, allocations: 37.7 kB / 0.5032 GB, free: 476 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.3262, allocations: 367.5 kB / 0.5035 GB, free: 100 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1559/0.4821, allocations: 162.1 kB / 0.5037 GB, free: 94.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.113e-05/0.4823, allocations: 15.72 kB / 0.5037 GB, free: 94.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.4824, allocations: 373.5 kB / 0.504 GB, free: 93.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.484, allocations: 460.4 kB / 0.5045 GB, free: 93.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.4856, allocations: 0.7378 MB / 0.5052 GB, free: 93.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.4881, allocations: 1.075 MB / 0.5063 GB, free: 93.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.4881, allocations: 2.5 kB / 0.5063 GB, free: 93.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003111/0.4912, allocations: 1.251 MB / 0.5075 GB, free: 93.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.414e-05/0.4913, allocations: 66.33 kB / 0.5075 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.4913, allocations: 7.969 kB / 0.5076 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.4914, allocations: 10.06 kB / 0.5076 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.4925, allocations: 250.8 kB / 0.5078 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.348e-05/0.4925, allocations: 18.47 kB / 0.5078 GB, free: 92.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4937, allocations: 229.9 kB / 0.508 GB, free: 92.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.655e-05/0.4938, allocations: 33.86 kB / 0.5081 GB, free: 92.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.4942, allocations: 223 kB / 0.5083 GB, free: 92.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.4943, allocations: 65.89 kB / 0.5083 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.4945, allocations: 71.38 kB / 0.5084 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.4946, allocations: 4.625 kB / 0.5084 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4946, allocations: 5.953 kB / 0.5084 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4946, allocations: 3.5 kB / 0.5084 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/0.4976, allocations: 1.797 MB / 0.5102 GB, free: 92.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4976, allocations: 3.938 kB / 0.5102 GB, free: 92.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.4983, allocations: 175.3 kB / 0.5104 GB, free: 92.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.4984, allocations: 0 / 0.5104 GB, free: 92.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.4984, allocations: 22.55 kB / 0.5104 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4984, allocations: 3.812 kB / 0.5104 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4984, allocations: 0 / 0.5104 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002881/0.5013, allocations: 1.464 MB / 0.5118 GB, free: 92.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.5014, allocations: 153.6 kB / 0.512 GB, free: 92.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.401e-05/0.5015, allocations: 15.16 kB / 0.512 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007229/0.5023, allocations: 140.1 kB / 0.5121 GB, free: 92.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.5024, allocations: 54.06 kB / 0.5122 GB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.769e-05/0.5025, allocations: 15.91 kB / 0.5122 GB, free: 92.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005164/0.503, allocations: 396.5 kB / 0.5125 GB, free: 91.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.503, allocations: 3.828 kB / 0.5126 GB, free: 91.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007257/0.5038, allocations: 185.9 kB / 0.5127 GB, free: 91.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002329/0.504, allocations: 119.8 kB / 0.5128 GB, free: 91.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002298/0.5063, allocations: 1.111 MB / 0.5139 GB, free: 91.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.5063, allocations: 0 / 0.5139 GB, free: 91.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009335/0.5073, allocations: 463.1 kB / 0.5144 GB, free: 91.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.5079, allocations: 102.3 kB / 0.5145 GB, free: 91.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.51, allocations: 1.543 MB / 0.516 GB, free: 90.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.5102, allocations: 0.8779 MB / 0.5168 GB, free: 89.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.5105, allocations: 58.14 kB / 0.5169 GB, free: 89.57 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5106, allocations: 3.906 kB / 0.5169 GB, free: 89.57 MB / 378.7 MB Notification: Performance of Templates: time 0.01017/0.5207, allocations: 9.217 MB / 0.5259 GB, free: 84.14 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches