Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.00172, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 60.53 kB / 306.9 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.0967, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005607/0.1023, allocations: 4.277 MB / 361.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.1047, allocations: 1.215 MB / 362.9 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005003/0.1052, allocations: 8 kB / 362.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003804/0.1056, allocations: 75.33 kB / 363 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005677/0.1062, allocations: 154.8 kB / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007096/0.1069, allocations: 283.7 kB / 363.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.1081, allocations: 1.007 MB / 364.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.1085, allocations: 243.5 kB / 364.7 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005362/0.1091, allocations: 346.8 kB / 365 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.1096, allocations: 422.2 kB / 365.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002338/0.1099, allocations: 56 kB / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.1101, allocations: 60 kB / 365.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.1103, allocations: 171.3 kB / 365.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.1108, allocations: 390 kB / 366.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008515/0.1117, allocations: 0.9511 MB / 367 MB, free: 4.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1117, allocations: 0 / 367 MB, free: 4.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1117, allocations: 0 / 367 MB, free: 4.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.696e-05/0.1117, allocations: 4 kB / 367 MB, free: 4.609 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.003338/0.1151, allocations: 1.265 MB / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1151, allocations: 8.031 kB / 368.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.1153, allocations: 84 kB / 368.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006376/0.116, allocations: 477.5 kB / 368.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.311e-05/0.1161, allocations: 53.67 kB / 368.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.1162, allocations: 60.31 kB / 369 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.1185, allocations: 0.9646 MB / 369.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1185, allocations: 3.938 kB / 369.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.1186, allocations: 28 kB / 370 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1186, allocations: 12 kB / 370 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002915/0.1216, allocations: 1.003 MB / 371 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1628/0.2844, allocations: 3.208 MB / 374.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.2869, allocations: 0.9055 MB / 375.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.2881, allocations: 436.3 kB / 375.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.414e-05/0.2882, allocations: 23.97 kB / 375.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.2896, allocations: 463.6 kB / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.226e-06/0.2896, allocations: 0 / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003178/0.2928, allocations: 1.094 MB / 377.1 MB, free: 17.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.2929, allocations: 379.2 kB / 377.5 MB, free: 16.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008757/0.2938, allocations: 0.5768 MB / 378 MB, free: 16.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.822e-05/0.2939, allocations: 38.16 kB / 378.1 MB, free: 16.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.2941, allocations: 374.6 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.2943, allocations: 167.7 kB / 378.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.2945, allocations: 136.9 kB / 378.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2946, allocations: 377.5 kB / 379.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.2958, allocations: 401.6 kB / 379.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.2971, allocations: 0.6792 MB / 380.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.2993, allocations: 0.9712 MB / 381.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.2993, allocations: 2.625 kB / 381.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002801/0.3021, allocations: 1.14 MB / 382.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.3022, allocations: 65.97 kB / 382.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3022, allocations: 6.312 kB / 382.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.3022, allocations: 11.19 kB / 382.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.3033, allocations: 220.9 kB / 382.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.371e-05/0.3033, allocations: 19.27 kB / 382.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3044, allocations: 186.7 kB / 382.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-05/0.3045, allocations: 34.77 kB / 382.8 MB, free: 14.02 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.0003324/0.3048, allocations: 222.7 kB / 383 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.305, allocations: 68.47 kB / 383.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.3051, allocations: 71.8 kB / 383.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.3052, allocations: 8.688 kB / 383.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3052, allocations: 1.406 kB / 383.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3052, allocations: 2.719 kB / 383.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.3089, allocations: 1.671 MB / 384.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3089, allocations: 0.8438 kB / 384.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007954/0.3097, allocations: 152.6 kB / 385 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.3098, allocations: 3.688 kB / 385 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.162e-05/0.3098, allocations: 13.09 kB / 385 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.3098, allocations: 3.5 kB / 385 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3098, allocations: 0 / 385 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003255/0.3131, allocations: 1.295 MB / 386.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.3133, allocations: 153.6 kB / 386.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.3135, allocations: 14 kB / 386.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008246/0.3143, allocations: 105.4 kB / 386.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.3145, allocations: 45.75 kB / 386.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.161e-05/0.3145, allocations: 16.2 kB / 386.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006487/0.3152, allocations: 403.5 kB / 387 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3152, allocations: 1 kB / 387.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007123/0.3159, allocations: 184.2 kB / 387.2 MB, free: 12.04 MB / 302.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.0001572/0.3161, allocations: 120.2 kB / 387.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.3186, allocations: 0.9964 MB / 388.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3186, allocations: 1 kB / 388.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3196, allocations: 411.9 kB / 388.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/0.3203, allocations: 98.2 kB / 388.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.3228, allocations: 1.537 MB / 390.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3231, allocations: 0.8798 MB / 391.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.3235, allocations: 58.58 kB / 391.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3235, allocations: 0 / 391.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of Templates: time 0.01316/0.3367, allocations: 9.265 MB / 400.6 MB, free: 3.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches