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.001532/0.001532, allocations: 85.95 kB / 23 MB, free: 1.5 MB / 18.57 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.001546/0.001546, allocations: 176.7 kB / 26.4 MB, free: 7.754 MB / 18.57 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 0.991/0.991, allocations: 158.6 MB / 188.3 MB, free: 2.801 MB / 170.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 1.513e-06/1.513e-06, allocations: 0 / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.92e-05/3.071e-05, allocations: 6.25 kB / 252.3 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005771/0.005802, allocations: 3.899 MB / 256.2 MB, free: 3.312 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.008242, allocations: 1.115 MB / 257.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.008649, allocations: 8 kB / 257.3 MB, free: 2.18 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002726/0.008922, allocations: 98.95 kB / 257.4 MB, free: 2.082 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004686/0.009391, allocations: 186.3 kB / 257.6 MB, free: 1.898 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007489/0.01014, allocations: 283.6 kB / 257.8 MB, free: 1.621 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00123/0.01137, allocations: 0.9874 MB / 258.8 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.01177, allocations: 175.1 kB / 259 MB, free: 464 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.0128, allocations: 0.5576 MB / 259.6 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006333/0.01343, allocations: 355.1 kB / 259.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.01365, allocations: 116 kB / 260 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.0138, allocations: 119.9 kB / 260.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.01398, allocations: 211.4 kB / 260.3 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000397/0.01438, allocations: 295.4 kB / 260.6 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.01543, allocations: 0.6777 MB / 261.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.01544, allocations: 0 / 261.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.01544, allocations: 0 / 261.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.006e-05/0.01547, allocations: 0 / 261.3 MB, free: 14.14 MB / 250.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.002332/0.0178, allocations: 1.158 MB / 262.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.01784, allocations: 11.98 kB / 262.5 MB, free: 12.92 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.01804, allocations: 120.5 kB / 262.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.01854, allocations: 378.4 kB / 263 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.01859, allocations: 41.69 kB / 263 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.811e-05/0.01869, allocations: 64.36 kB / 263.1 MB, free: 12.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.01986, allocations: 0.8683 MB / 263.9 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.01987, allocations: 192 / 263.9 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.413e-05/0.01994, allocations: 27.94 kB / 264 MB, free: 11.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.01995, allocations: 12 kB / 264 MB, free: 11.26 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005351/0.02049, allocations: 262.7 kB / 264.2 MB, free: 11 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.02377, allocations: 2.964 MB / 267.2 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007273/0.0245, allocations: 353 kB / 267.5 MB, free: 7.555 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003104/0.02481, allocations: 165.1 kB / 267.7 MB, free: 7.391 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.02485, allocations: 20.48 kB / 267.7 MB, free: 7.371 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000367/0.02522, allocations: 227.7 kB / 267.9 MB, free: 7.129 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 4.027e-06/0.02522, allocations: 4 kB / 267.9 MB, free: 7.125 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008708/0.0261, allocations: 432.7 kB / 268.4 MB, free: 6.699 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.02622, allocations: 269.5 kB / 268.6 MB, free: 6.375 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/0.02694, allocations: 486.2 kB / 269.1 MB, free: 5.883 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.027, allocations: 41.69 kB / 269.1 MB, free: 5.836 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.02726, allocations: 403.1 kB / 269.5 MB, free: 5.434 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.0274, allocations: 174.5 kB / 269.7 MB, free: 5.262 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.02763, allocations: 148.2 kB / 269.8 MB, free: 5.109 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.0278, allocations: 0.539 MB / 270.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.02807, allocations: 165.3 kB / 270.6 MB, free: 4.387 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005305/0.0286, allocations: 0.7225 MB / 271.3 MB, free: 3.449 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006324/0.02923, allocations: 0.5687 MB / 271.8 MB, free: 2.754 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.02924, allocations: 4 kB / 271.8 MB, free: 2.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009978/0.03023, allocations: 0.6701 MB / 272.5 MB, free: 2.047 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.406e-05/0.03029, allocations: 64.19 kB / 272.6 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.0303, allocations: 8 kB / 272.6 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.03032, allocations: 12 kB / 272.6 MB, free: 1.953 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000658/0.03098, allocations: 191.7 kB / 272.8 MB, free: 1.766 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.03099, allocations: 15.98 kB / 272.8 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.03155, allocations: 119.4 kB / 272.9 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.106e-05/0.03161, allocations: 35.94 kB / 273 MB, free: 1.598 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.0002319/0.03184, allocations: 212.2 kB / 273.2 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.03195, allocations: 75.62 kB / 273.2 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.03206, allocations: 61.52 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.03206, allocations: 8 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.03207, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.03208, allocations: 3.984 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.03352, allocations: 0.9327 MB / 274.2 MB, free: 276 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.03352, allocations: 0 / 274.2 MB, free: 276 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.03397, allocations: 115.8 kB / 274.4 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.03398, allocations: 4 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.316e-05/0.03402, allocations: 12 kB / 274.4 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.03402, allocations: 4 kB / 274.4 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.03403, allocations: 3.984 kB / 274.4 MB, free: 136 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009049/0.03493, allocations: 0.6111 MB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.936e-05/0.03503, allocations: 59.53 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-05/0.03511, allocations: 12 kB / 275.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.0355, allocations: 63.97 kB / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.03563, allocations: 52.36 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.03567, allocations: 15.98 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002413/0.03591, allocations: 298.7 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.03591, allocations: 0 / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006078/0.03652, allocations: 175.7 kB / 275.6 MB, free: 14.84 MB / 266.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.0001559/0.03667, allocations: 111.2 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.03773, allocations: 0.5388 MB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.03773, allocations: 0 / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.03808, allocations: 175.5 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.03859, allocations: 120.8 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.0403, allocations: 0.9625 MB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.701e-05/0.04039, allocations: 117.9 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.04072, allocations: 76.53 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004498/0.04117, allocations: 218.1 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/0.04117, allocations: 0 / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01557/0.05674, allocations: 9.104 MB / 287.1 MB, free: 3.355 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.115120342001319]