Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001512/0.001512, allocations: 114.7 kB / 19.17 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001662/0.001662, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 230.4 MB / 255.4 MB, free: 15 MB / 206.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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 59.91 kB / 374.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1195, allocations: 53.32 MB / 428.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005651/0.1251, allocations: 4.263 MB / 432.3 MB, free: 60 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2469/0.372, allocations: 1.206 MB / 433.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002934/0.3723, allocations: 12.94 kB / 433.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002787/0.3725, allocations: 108.7 kB / 433.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.3729, allocations: 187.4 kB / 433.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006298/0.3735, allocations: 328.3 kB / 434.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.3745, allocations: 1.091 MB / 435.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.3749, allocations: 200.9 kB / 435.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.3753, allocations: 405.4 kB / 435.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.3758, allocations: 463.6 kB / 436.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.3759, allocations: 122.2 kB / 436.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.3761, allocations: 118.1 kB / 436.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.3763, allocations: 224.2 kB / 436.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004179/0.3767, allocations: 450.3 kB / 437.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.3782, allocations: 1.221 MB / 438.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3782, allocations: 1.281 kB / 438.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3782, allocations: 0 / 438.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.3782, allocations: 0 / 438.4 MB, free: 6.645 MB / 350.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.002992/0.3812, allocations: 1.285 MB / 439.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3813, allocations: 13.5 kB / 439.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.3815, allocations: 87.48 kB / 439.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.3821, allocations: 484.1 kB / 440.3 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.3822, allocations: 47.73 kB / 440.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3823, allocations: 56.39 kB / 440.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3846, allocations: 0.9706 MB / 441.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.3846, allocations: 9.625 kB / 441.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.493e-05/0.3847, allocations: 22.83 kB / 441.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.3847, allocations: 15.84 kB / 441.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003011/0.3877, allocations: 0.9995 MB / 442.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.3927, allocations: 3.204 MB / 445.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.3951, allocations: 0.8834 MB / 446.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.3963, allocations: 429.3 kB / 446.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-05/0.3964, allocations: 20.47 kB / 446.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001318/0.3977, allocations: 462.8 kB / 447.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.326e-06/0.3977, allocations: 0 / 447.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.00359/0.4013, allocations: 1.1 MB / 448.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.4014, allocations: 377.9 kB / 448.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.4025, allocations: 0.5741 MB / 449.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.4026, allocations: 39.56 kB / 449.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.4028, allocations: 374.5 kB / 449.8 MB, free: 364 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.403, allocations: 181.4 kB / 450 MB, free: 224 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002695/0.4032, allocations: 137.5 kB / 450.1 MB, free: 152 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.4034, allocations: 377.2 kB / 450.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.4048, allocations: 402.5 kB / 450.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.4063, allocations: 0.6758 MB / 451.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.4088, allocations: 0.9627 MB / 452.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/0.4088, allocations: 6.031 kB / 452.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003143/0.4119, allocations: 1.144 MB / 453.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/0.412, allocations: 61.89 kB / 453.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.412, allocations: 8.859 kB / 453.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.412, allocations: 14.5 kB / 453.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.4131, allocations: 225.6 kB / 454 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.4131, allocations: 15.59 kB / 454 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.4143, allocations: 189.9 kB / 454.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.252e-05/0.4143, allocations: 32.19 kB / 454.2 MB, free: 14.05 MB / 366.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.0004084/0.4147, allocations: 233.9 kB / 454.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.4149, allocations: 69.8 kB / 454.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.415, allocations: 75.42 kB / 454.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.415, allocations: 5.5 kB / 454.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.4151, allocations: 0 / 454.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4151, allocations: 5.359 kB / 454.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.4188, allocations: 1.673 MB / 456.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4188, allocations: 0 / 456.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007971/0.4196, allocations: 149 kB / 456.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.4196, allocations: 3.375 kB / 456.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.328e-05/0.4196, allocations: 16.14 kB / 456.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4196, allocations: 1.031 kB / 456.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4196, allocations: 5.625 kB / 456.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00351/0.4231, allocations: 1.305 MB / 457.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.4234, allocations: 154.2 kB / 457.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.4235, allocations: 12.34 kB / 457.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000783/0.4243, allocations: 105.8 kB / 458 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4244, allocations: 51.97 kB / 458.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.4244, allocations: 15.28 kB / 458.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000649/0.4251, allocations: 401.7 kB / 458.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4251, allocations: 3.938 kB / 458.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000796/0.4259, allocations: 185.6 kB / 458.6 MB, free: 11.3 MB / 366.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.0002019/0.4261, allocations: 114.1 kB / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.4288, allocations: 0.9607 MB / 459.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4288, allocations: 1.125 kB / 459.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.43, allocations: 397.4 kB / 460.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/0.4306, allocations: 106.3 kB / 460.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.4336, allocations: 1.289 MB / 461.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006251/0.4342, allocations: 0.8802 MB / 462.4 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.4346, allocations: 64.64 kB / 462.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4346, allocations: 0 / 462.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of Templates: time 0.01627/0.4509, allocations: 9.354 MB / 471.8 MB, free: 3.273 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.631253363797441]