Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009452/0.0009451, allocations: 175 kB / 13.63 MB, free: 1.684 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.406/1.406, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000815/0.0008151, allocations: 91.72 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.324e-05, allocations: 4 kB / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08707/0.08712, allocations: 50.42 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/0.3737, allocations: 82.46 MB / 476.7 MB, free: 5.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.3739, allocations: 71.8 kB / 476.8 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03154/0.4055, allocations: 11.41 MB / 488.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4055, allocations: 0 / 488.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.4055, allocations: 12 kB / 488.2 MB, free: 9.527 MB / 362.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.002432/0.408, allocations: 1.117 MB / 489.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.408, allocations: 8.031 kB / 489.3 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.4082, allocations: 86.97 kB / 489.4 MB, free: 8.258 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/0.4089, allocations: 493.9 kB / 489.9 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.409, allocations: 41.31 kB / 489.9 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.4091, allocations: 60 kB / 490 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.4103, allocations: 0.7654 MB / 490.8 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.4103, allocations: 7.953 kB / 490.8 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.375e-05/0.4104, allocations: 28 kB / 490.8 MB, free: 6.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.4104, allocations: 19.94 kB / 490.8 MB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.4115, allocations: 0.6209 MB / 491.4 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004879/0.4163, allocations: 3.29 MB / 494.7 MB, free: 2.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.4176, allocations: 0.6866 MB / 495.4 MB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000549/0.4182, allocations: 309.7 kB / 495.7 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.4182, allocations: 16.56 kB / 495.7 MB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.4188, allocations: 325.3 kB / 496 MB, free: 1.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.316e-06/0.4188, allocations: 0 / 496 MB, free: 1.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001084/0.4199, allocations: 0.5226 MB / 496.6 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000204/0.4202, allocations: 372.3 kB / 496.9 MB, free: 356 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.4209, allocations: 0.4892 MB / 497.4 MB, free: 15.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.4209, allocations: 37.7 kB / 497.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.4212, allocations: 363.5 kB / 497.8 MB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.4214, allocations: 169.6 kB / 498 MB, free: 15.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.4214, allocations: 12 kB / 498 MB, free: 15.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4216, allocations: 378.8 kB / 498.4 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.422, allocations: 249.6 kB / 498.6 MB, free: 14.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006588/0.4227, allocations: 0.5231 MB / 499.1 MB, free: 13.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.4232, allocations: 334.5 kB / 499.5 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.4232, allocations: 4 kB / 499.5 MB, free: 13.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001411/0.4246, allocations: 0.8337 MB / 0.4886 GB, free: 12.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.7e-05/0.4247, allocations: 71.55 kB / 0.4886 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.4247, allocations: 11.89 kB / 0.4886 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.4248, allocations: 12 kB / 0.4887 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.4259, allocations: 255.6 kB / 0.4889 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-05/0.426, allocations: 15.94 kB / 0.4889 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.4272, allocations: 223 kB / 0.4891 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.931e-05/0.4273, allocations: 40 kB / 0.4892 GB, free: 12.17 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 () * 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.0002334/0.4276, allocations: 156.7 kB / 0.4893 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4277, allocations: 67.23 kB / 0.4894 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.4279, allocations: 70.19 kB / 0.4894 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.4279, allocations: 7.953 kB / 0.4895 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.428, allocations: 4 kB / 0.4895 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.428, allocations: 4 kB / 0.4895 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.4301, allocations: 1.416 MB / 0.4908 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.4301, allocations: 0 / 0.4908 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008522/0.4309, allocations: 179.8 kB / 0.491 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.431, allocations: 0 / 0.491 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/0.431, allocations: 11.98 kB / 0.491 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.431, allocations: 4 kB / 0.491 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.431, allocations: 0 / 0.491 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.4324, allocations: 0.9043 MB / 0.4919 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.4326, allocations: 144.2 kB / 0.4921 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.4327, allocations: 16 kB / 0.4921 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/0.4335, allocations: 143.9 kB / 0.4922 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.4337, allocations: 48.36 kB / 0.4922 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.4337, allocations: 20 kB / 0.4923 GB, free: 8.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004263/0.4342, allocations: 381.5 kB / 0.4926 GB, free: 8.512 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4342, allocations: 0 / 0.4926 GB, free: 8.512 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006432/0.4348, allocations: 187.7 kB / 0.4928 GB, free: 8.328 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) * 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.0002063/0.435, allocations: 116.8 kB / 0.4929 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.4361, allocations: 0.7202 MB / 0.4936 GB, free: 7.457 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4361, allocations: 0 / 0.4936 GB, free: 7.457 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.4366, allocations: 282.4 kB / 0.4939 GB, free: 7.184 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.437, allocations: 90.52 kB / 0.494 GB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.4388, allocations: 0.9071 MB / 0.4949 GB, free: 6.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.4392, allocations: 0.8981 MB / 0.4957 GB, free: 5.242 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004494/0.4396, allocations: 84.86 kB / 0.4958 GB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.4398, allocations: 51.42 kB / 0.4959 GB, free: 5.109 MB / 378.7 MB Notification: Performance of SimCode: time 5.1e-07/0.4399, allocations: 0 / 0.4959 GB, free: 5.109 MB / 378.7 MB Notification: Performance of Templates: time 0.01318/0.453, allocations: 7.684 MB / 0.5034 GB, free: 13.49 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches