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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 81.27 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 147.2 kB / 23.94 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 1.438 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.621e-05, allocations: 2.281 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00514/0.005167, allocations: 3.792 MB / 322.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.007878, allocations: 1.158 MB / 323.9 MB, free: 140 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.008217, allocations: 13.94 kB / 323.9 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.008486, allocations: 107.9 kB / 324 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004806/0.008966, allocations: 194.5 kB / 324.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00088/0.009846, allocations: 336 kB / 324.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.01124, allocations: 1.118 MB / 325.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.01162, allocations: 189.5 kB / 325.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008966/0.01252, allocations: 0.6068 MB / 326.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005676/0.01309, allocations: 354.3 kB / 326.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001775/0.01327, allocations: 118.7 kB / 326.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.01346, allocations: 118.6 kB / 327 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00026/0.01372, allocations: 226.4 kB / 327.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004429/0.01416, allocations: 318.5 kB / 327.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.01591, allocations: 1.295 MB / 328.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.01592, allocations: 0 / 328.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.01592, allocations: 5.062 kB / 328.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.01594, allocations: 0 / 328.8 MB, free: 13.69 MB / 302.1 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.003508/0.01945, allocations: 1.208 MB / 330.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.0195, allocations: 10.67 kB / 330.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002328/0.01974, allocations: 91.23 kB / 330.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000871/0.02061, allocations: 418.5 kB / 330.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.752e-05/0.02065, allocations: 46.28 kB / 330.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.02078, allocations: 59.38 kB / 330.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002636/0.02342, allocations: 1.266 MB / 331.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.02344, allocations: 1.344 kB / 331.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.681e-05/0.02352, allocations: 27.12 kB / 332 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.02354, allocations: 19.06 kB / 332 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003225/0.02677, allocations: 1.001 MB / 333 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005279/0.03205, allocations: 2.818 MB / 335.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.03443, allocations: 0.7339 MB / 336.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.0357, allocations: 416.9 kB / 336.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.9e-05/0.03576, allocations: 15.52 kB / 336.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.03706, allocations: 467.3 kB / 337.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.306e-06/0.03706, allocations: 5.375 kB / 337.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003592/0.04066, allocations: 1.098 MB / 338.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002407/0.0409, allocations: 368.6 kB / 338.9 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008705/0.04177, allocations: 0.5431 MB / 339.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.605e-05/0.04185, allocations: 39.2 kB / 339.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003329/0.04219, allocations: 373.2 kB / 339.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.04238, allocations: 179.9 kB / 340 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.04265, allocations: 135.4 kB / 340.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.04286, allocations: 368.5 kB / 340.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.04422, allocations: 465.8 kB / 340.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.04606, allocations: 1.036 MB / 342 MB, free: 3.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002636/0.0487, allocations: 0.9792 MB / 343 MB, free: 2.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.0487, allocations: 0 / 343 MB, free: 2.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003311/0.05201, allocations: 1.194 MB / 344.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.248e-05/0.05208, allocations: 74.45 kB / 344.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.0521, allocations: 8 kB / 344.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.961e-05/0.05213, allocations: 8 kB / 344.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.05325, allocations: 223.9 kB / 344.5 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.493e-05/0.05327, allocations: 19.92 kB / 344.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.05448, allocations: 175.3 kB / 344.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.001e-05/0.05456, allocations: 31.98 kB / 344.7 MB, free: 1.078 MB / 302.1 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.0003853/0.05494, allocations: 218.5 kB / 344.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.05506, allocations: 71.52 kB / 345 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.05522, allocations: 77.88 kB / 345 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.05523, allocations: 4 kB / 345 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.05524, allocations: 0 / 345 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.05525, allocations: 3.984 kB / 345 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003702/0.05895, allocations: 1.452 MB / 346.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.05896, allocations: 7.938 kB / 346.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/0.05982, allocations: 147.8 kB / 346.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.05983, allocations: 0 / 346.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/0.05988, allocations: 15.92 kB / 346.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.05989, allocations: 8 kB / 346.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.05989, allocations: 0 / 346.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.06366, allocations: 1.302 MB / 348 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.06384, allocations: 67.52 kB / 348 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.06396, allocations: 12 kB / 348 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008785/0.06484, allocations: 95.92 kB / 348.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.065, allocations: 60.41 kB / 348.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.06506, allocations: 12 kB / 348.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006479/0.0657, allocations: 370.8 kB / 348.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0657, allocations: 0 / 348.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008454/0.06655, allocations: 183.7 kB / 348.8 MB, free: 12.94 MB / 318.1 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.0002171/0.06677, allocations: 115.1 kB / 348.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003043/0.06981, allocations: 1.02 MB / 349.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.06981, allocations: 0 / 349.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.07112, allocations: 403.7 kB / 350.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007154/0.07183, allocations: 106.1 kB / 350.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.07462, allocations: 1.188 MB / 351.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.07491, allocations: 280.4 kB / 351.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.07532, allocations: 80.66 kB / 351.9 MB, free: 9.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002437/0.07556, allocations: 52.48 kB / 352 MB, free: 9.609 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.07556, allocations: 0 / 352 MB, free: 9.609 MB / 318.1 MB Notification: Performance of Templates: time 0.01772/0.09328, allocations: 8.689 MB / 360.7 MB, free: 1.055 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.747908666729927]