Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009375/0.0009375, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000774/0.0007739, allocations: 94.42 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.307e-05/1.31e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09643, allocations: 51.47 MB / 395.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.3979, allocations: 82.59 MB / 477.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.3982, allocations: 67.84 kB / 477.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02759/0.4258, allocations: 11.35 MB / 489.2 MB, free: 1.023 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4259, allocations: 0 / 489.2 MB, free: 1.023 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.4259, allocations: 12 kB / 489.2 MB, free: 1.012 MB / 346.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.002351/0.4283, allocations: 1.125 MB / 490.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4283, allocations: 8.031 kB / 490.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.4285, allocations: 83.06 kB / 490.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006746/0.4292, allocations: 482.9 kB / 490.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.4292, allocations: 31.55 kB / 490.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.85e-05/0.4293, allocations: 32 kB / 490.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001/0.4303, allocations: 0.5884 MB / 491.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.4314, allocations: 0.6841 MB / 492.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.4314, allocations: 3.938 kB / 492.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.4315, allocations: 4 kB / 492.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.4315, allocations: 12 kB / 492.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004724/0.4363, allocations: 3.183 MB / 495.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.4373, allocations: 0.664 MB / 496.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.4378, allocations: 297.3 kB / 496.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.518e-05/0.4379, allocations: 20.22 kB / 496.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/0.4384, allocations: 312.3 kB / 496.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.946e-06/0.4385, allocations: 0 / 496.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008785/0.4393, allocations: 488.1 kB / 497.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.4395, allocations: 376.1 kB / 497.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.44, allocations: 425.2 kB / 497.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.44, allocations: 33.69 kB / 498 MB, free: 9.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.4402, allocations: 372.7 kB / 498.3 MB, free: 9.422 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.4404, allocations: 165.1 kB / 498.5 MB, free: 9.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.4404, allocations: 4 kB / 498.5 MB, free: 9.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4406, allocations: 363 kB / 498.9 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.4409, allocations: 236.2 kB / 499.1 MB, free: 8.816 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/0.4415, allocations: 0.5047 MB / 499.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.4419, allocations: 265.8 kB / 499.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4419, allocations: 4 kB / 499.9 MB, free: 8.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001106/0.443, allocations: 0.7162 MB / 0.4888 GB, free: 7.629 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.378e-05/0.443, allocations: 63.16 kB / 0.4889 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4431, allocations: 8 kB / 0.4889 GB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.4431, allocations: 12 kB / 0.4889 GB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.4442, allocations: 255.9 kB / 0.4892 GB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.4442, allocations: 8 kB / 0.4892 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.4453, allocations: 213.8 kB / 0.4894 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.097e-05/0.4454, allocations: 31.92 kB / 0.4894 GB, free: 7.055 MB / 362.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 () * 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.0001797/0.4455, allocations: 132.6 kB / 0.4895 GB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-05/0.4456, allocations: 70.7 kB / 0.4896 GB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.4458, allocations: 64.16 kB / 0.4897 GB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4458, allocations: 8 kB / 0.4897 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4458, allocations: 0 / 0.4897 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4459, allocations: 3.984 kB / 0.4897 GB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.4478, allocations: 1.308 MB / 0.4909 GB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.4478, allocations: 4 kB / 0.491 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000857/0.4486, allocations: 182.4 kB / 0.4911 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.361e-06/0.4487, allocations: 0 / 0.4911 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.373e-05/0.4487, allocations: 7.984 kB / 0.4911 GB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4487, allocations: 4 kB / 0.4911 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4487, allocations: 0 / 0.4911 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.4499, allocations: 0.8736 MB / 0.492 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.4501, allocations: 135.3 kB / 0.4921 GB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.694e-05/0.4502, allocations: 7.375 kB / 0.4921 GB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008308/0.451, allocations: 131.9 kB / 0.4923 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4512, allocations: 50.42 kB / 0.4923 GB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.4512, allocations: 19.23 kB / 0.4923 GB, free: 4.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003716/0.4516, allocations: 313.3 kB / 0.4926 GB, free: 4.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4516, allocations: 0 / 0.4926 GB, free: 4.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006818/0.4523, allocations: 171.5 kB / 0.4928 GB, free: 4.344 MB / 362.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) * 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.000213/0.4525, allocations: 111.2 kB / 0.4929 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4536, allocations: 0.6781 MB / 0.4935 GB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4536, allocations: 4 kB / 0.4936 GB, free: 3.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.454, allocations: 271.2 kB / 0.4938 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.4545, allocations: 79.5 kB / 0.4939 GB, free: 3.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.4562, allocations: 0.8668 MB / 0.4947 GB, free: 2.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.4567, allocations: 0.8941 MB / 0.4956 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.4571, allocations: 76.66 kB / 0.4957 GB, free: 1.293 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.4573, allocations: 51.42 kB / 0.4957 GB, free: 1.242 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4573, allocations: 0 / 0.4957 GB, free: 1.242 MB / 362.7 MB Notification: Performance of Templates: time 0.01203/0.4693, allocations: 6.833 MB / 0.5024 GB, free: 10.54 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches