Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007774/0.0007774, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001187/0.001965, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007136/0.0007136, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009809/0.001694, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1808/1.227, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.895e-06/2.895e-06, allocations: 0 / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.173e-05, allocations: 5.406 kB / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006627/0.006659, allocations: 3.954 MB / 226 MB, free: 12.06 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.008932, allocations: 1.165 MB / 227.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000369/0.009301, allocations: 11.94 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.009531, allocations: 91.03 kB / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.009911, allocations: 186.3 kB / 227.4 MB, free: 10.61 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005779/0.01049, allocations: 291.5 kB / 227.7 MB, free: 10.32 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.01152, allocations: 0.9757 MB / 228.7 MB, free: 9.344 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003457/0.01186, allocations: 185 kB / 228.8 MB, free: 9.16 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.01288, allocations: 0.6268 MB / 229.5 MB, free: 8.531 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005183/0.0134, allocations: 351.1 kB / 229.8 MB, free: 8.188 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.01356, allocations: 119.9 kB / 229.9 MB, free: 8.07 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.01368, allocations: 116 kB / 230 MB, free: 7.957 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.0138, allocations: 151.6 kB / 230.2 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.01404, allocations: 239.6 kB / 230.4 MB, free: 7.574 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006151/0.01465, allocations: 0.5959 MB / 231 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.582e-05/0.01467, allocations: 4 kB / 231 MB, free: 6.973 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01467, allocations: 0 / 231 MB, free: 6.973 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.01469, allocations: 0 / 231 MB, free: 6.973 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001622/0.01631, allocations: 1.161 MB / 232.2 MB, free: 5.77 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.01635, allocations: 8.031 kB / 232.2 MB, free: 5.762 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.01649, allocations: 92.86 kB / 232.3 MB, free: 5.672 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.01721, allocations: 271.7 kB / 232.6 MB, free: 5.379 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.01726, allocations: 41.69 kB / 232.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.01733, allocations: 60.36 kB / 232.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.01811, allocations: 0.8226 MB / 233.5 MB, free: 4.344 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.01812, allocations: 4.125 kB / 233.5 MB, free: 4.34 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.01816, allocations: 27.94 kB / 233.5 MB, free: 4.312 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.01818, allocations: 19.98 kB / 233.5 MB, free: 4.293 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.01851, allocations: 226.8 kB / 233.7 MB, free: 4.07 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.02071, allocations: 2.191 MB / 235.9 MB, free: 1.781 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005553/0.02127, allocations: 316.2 kB / 236.2 MB, free: 1.465 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.02148, allocations: 146.3 kB / 236.4 MB, free: 1.316 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.832e-05/0.02153, allocations: 16.48 kB / 236.4 MB, free: 1.301 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002844/0.02181, allocations: 234 kB / 236.6 MB, free: 1.059 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.02181, allocations: 0 / 236.6 MB, free: 1.059 MB / 234.7 MB Notification: Performance of matching and sorting (n=50): time 0.000503/0.02232, allocations: 322 kB / 236.9 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.02236, allocations: 59.91 kB / 237 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.02264, allocations: 427 kB / 237.4 MB, free: 248 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.223e-05/0.02269, allocations: 37.7 kB / 237.5 MB, free: 204 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.02285, allocations: 313.5 kB / 237.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.02296, allocations: 174.5 kB / 237.9 MB, free: 15.71 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.02309, allocations: 138.5 kB / 238.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.02324, allocations: 382.3 kB / 238.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.02341, allocations: 153.4 kB / 238.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.02376, allocations: 0.5999 MB / 239.2 MB, free: 14.26 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007776/0.02454, allocations: 0.5185 MB / 239.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.02455, allocations: 4 kB / 239.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006232/0.02517, allocations: 0.5426 MB / 240.3 MB, free: 13.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.546e-05/0.02523, allocations: 67.41 kB / 240.3 MB, free: 12.99 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.02524, allocations: 4.031 kB / 240.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.02526, allocations: 19.98 kB / 240.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005453/0.02581, allocations: 215.7 kB / 240.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.02582, allocations: 16 kB / 240.6 MB, free: 12.74 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003643/0.02618, allocations: 127.4 kB / 240.7 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.02622, allocations: 27.98 kB / 240.7 MB, free: 12.59 MB / 250.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 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.02637, allocations: 157.6 kB / 240.9 MB, free: 12.42 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.402e-05/0.02644, allocations: 51.95 kB / 240.9 MB, free: 12.37 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.57e-05/0.02652, allocations: 65.48 kB / 241 MB, free: 12.31 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.02652, allocations: 8 kB / 241 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.02653, allocations: 0 / 241 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.02653, allocations: 7.984 kB / 241 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008426/0.02737, allocations: 0.6728 MB / 241.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.02738, allocations: 3.984 kB / 241.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.02775, allocations: 135.8 kB / 241.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.244e-05/0.02781, allocations: 59.55 kB / 241.9 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-06/0.02781, allocations: 7.938 kB / 241.9 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.02784, allocations: 4 kB / 241.9 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.02784, allocations: 4 kB / 241.9 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.02785, allocations: 0 / 241.9 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005407/0.02839, allocations: 482.7 kB / 242.4 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.957e-05/0.02845, allocations: 12 kB / 242.4 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.02868, allocations: 67.91 kB / 242.4 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.02877, allocations: 52.41 kB / 242.5 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.02879, allocations: 12 kB / 242.5 MB, free: 10.75 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001528/0.02894, allocations: 176.4 kB / 242.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.02895, allocations: 0 / 242.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003627/0.02931, allocations: 171.8 kB / 242.8 MB, free: 10.41 MB / 250.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001291/0.02944, allocations: 92.36 kB / 242.9 MB, free: 10.31 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.03005, allocations: 0.5093 MB / 243.4 MB, free: 9.766 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.031e-05/0.0301, allocations: 17.38 kB / 243.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000275/0.03037, allocations: 189.6 kB / 243.6 MB, free: 9.562 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009635/0.03134, allocations: 0.8622 MB / 244.5 MB, free: 8.543 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00382/0.03516, allocations: 0.9489 MB / 245.5 MB, free: 7.566 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.03531, allocations: 125.7 kB / 245.6 MB, free: 7.422 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003749/0.03568, allocations: 76.58 kB / 245.7 MB, free: 7.344 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005373/0.03622, allocations: 179.3 kB / 245.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of SimCode: time 4.489e-06/0.03623, allocations: 3.938 kB / 245.8 MB, free: 7.164 MB / 250.7 MB Notification: Performance of Templates: time 0.01728/0.0535, allocations: 8.974 MB / 254.8 MB, free: 14.21 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.176398204639554]