Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001308/0.001308, allocations: 85.98 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001417/0.001417, allocations: 168.9 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.522e-05, allocations: 6.219 kB / 325.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005097/0.005122, allocations: 3.845 MB / 328.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.007476, allocations: 1.181 MB / 330.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.007728, allocations: 15.97 kB / 330.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.007993, allocations: 113 kB / 330.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.008393, allocations: 198.7 kB / 330.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000709/0.009102, allocations: 340 kB / 330.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.01027, allocations: 1.11 MB / 331.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.01061, allocations: 192.9 kB / 332.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006969/0.01131, allocations: 0.6033 MB / 332.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004818/0.01179, allocations: 348.6 kB / 333 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.01194, allocations: 118.3 kB / 333.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.01212, allocations: 118.8 kB / 333.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.01234, allocations: 224 kB / 333.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003838/0.01273, allocations: 319.7 kB / 333.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.01406, allocations: 1.299 MB / 335.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.01406, allocations: 1.438 kB / 335.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.01406, allocations: 0 / 335.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.01408, allocations: 0 / 335.1 MB, free: 9.77 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.003019/0.0171, allocations: 1.194 MB / 336.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.01713, allocations: 9.406 kB / 336.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.01732, allocations: 91.28 kB / 336.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006783/0.018, allocations: 430.8 kB / 336.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.01805, allocations: 45.97 kB / 336.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.01817, allocations: 63.98 kB / 336.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/0.02065, allocations: 1.265 MB / 338.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.02067, allocations: 1.656 kB / 338.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-05/0.02075, allocations: 24.25 kB / 338.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.02076, allocations: 17.66 kB / 338.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0032/0.02396, allocations: 0.9975 MB / 339.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005189/0.02915, allocations: 2.834 MB / 342 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.03167, allocations: 0.7309 MB / 342.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.033, allocations: 422 kB / 343.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.892e-05/0.03305, allocations: 12.48 kB / 343.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001354/0.03441, allocations: 466.1 kB / 343.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.098e-06/0.03441, allocations: 0 / 343.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003747/0.03816, allocations: 1.105 MB / 344.7 MB, free: 1.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002559/0.03842, allocations: 384.3 kB / 345.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008736/0.03929, allocations: 0.5338 MB / 345.6 MB, free: 96 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.881e-05/0.03937, allocations: 37.7 kB / 345.7 MB, free: 52 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/0.03975, allocations: 376.3 kB / 346 MB, free: 15.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.03994, allocations: 174.5 kB / 346.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.04023, allocations: 138.6 kB / 346.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.04045, allocations: 378.7 kB / 346.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.04183, allocations: 457.1 kB / 347.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001887/0.04372, allocations: 1.04 MB / 348.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/0.04647, allocations: 0.9715 MB / 349.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.04647, allocations: 0 / 349.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003509/0.04998, allocations: 1.198 MB / 350.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.05009, allocations: 67.34 kB / 350.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.05011, allocations: 4 kB / 350.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.703e-05/0.05015, allocations: 15.98 kB / 350.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.05133, allocations: 220 kB / 350.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-05/0.05135, allocations: 19.92 kB / 350.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.05249, allocations: 175.3 kB / 350.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.569e-05/0.05257, allocations: 39.98 kB / 350.9 MB, free: 10.42 MB / 318.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.0003798/0.05295, allocations: 221.5 kB / 351.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.05308, allocations: 63.62 kB / 351.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.05326, allocations: 73.88 kB / 351.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.05327, allocations: 4 kB / 351.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.05328, allocations: 4 kB / 351.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.05329, allocations: 3.984 kB / 351.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.05701, allocations: 1.456 MB / 352.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.05701, allocations: 0 / 352.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.05787, allocations: 151.8 kB / 352.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.05787, allocations: 0 / 352.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.05792, allocations: 12 kB / 352.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.05793, allocations: 4 kB / 352.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.05793, allocations: 0 / 352.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003821/0.06175, allocations: 1.305 MB / 354.2 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.0619, allocations: 71.47 kB / 354.3 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.06201, allocations: 12 kB / 354.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008644/0.06288, allocations: 107.9 kB / 354.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.06303, allocations: 56.34 kB / 354.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.74e-05/0.06308, allocations: 12 kB / 354.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006055/0.06368, allocations: 366.8 kB / 354.8 MB, free: 6.461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.06368, allocations: 4 kB / 354.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006911/0.06437, allocations: 179.7 kB / 355 MB, free: 6.281 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.0001874/0.06456, allocations: 115.2 kB / 355.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.06752, allocations: 1.024 MB / 356.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.06753, allocations: 0 / 356.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.06882, allocations: 395.7 kB / 356.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006462/0.06947, allocations: 102.1 kB / 356.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.07218, allocations: 1.192 MB / 357.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.07249, allocations: 284.4 kB / 358.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004293/0.07292, allocations: 72.67 kB / 358.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.07317, allocations: 52.48 kB / 358.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.07317, allocations: 4 kB / 358.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of Templates: time 0.01682/0.08999, allocations: 8.734 MB / 366.9 MB, free: 10.37 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.636342167854309]