Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001707, allocations: 205.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3176, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003296/0.3209, allocations: 1.919 MB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.3228, allocations: 1.175 MB / 0.5336 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.3229, allocations: 2.75 kB / 0.5336 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006151/0.3236, allocations: 183.1 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003752/0.324, allocations: 166.3 kB / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.3244, allocations: 175.9 kB / 0.5341 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.3247, allocations: 286.9 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.3248, allocations: 34.17 kB / 0.5344 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.325, allocations: 108.5 kB / 0.5346 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.3252, allocations: 120.5 kB / 0.5347 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.3252, allocations: 17.84 kB / 0.5347 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.3254, allocations: 61.86 kB / 0.5347 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.684e-05/0.3255, allocations: 65.33 kB / 0.5348 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.3256, allocations: 110 kB / 0.5349 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003808/0.326, allocations: 285 kB / 0.5352 GB, free: 9.949 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.326, allocations: 5.125 kB / 0.5352 GB, free: 9.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.326, allocations: 0 / 0.5352 GB, free: 9.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.326, allocations: 4 kB / 0.5352 GB, free: 9.941 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001068/0.3271, allocations: 0.672 MB / 0.5358 GB, free: 9.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3271, allocations: 10.03 kB / 0.5359 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.3272, allocations: 40.62 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.3273, allocations: 28.7 kB / 0.5359 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3277, allocations: 286.4 kB / 0.5362 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3278, allocations: 98.69 kB / 0.5363 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.3278, allocations: 20.12 kB / 0.5363 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.3281, allocations: 152.4 kB / 0.5365 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3282, allocations: 3.938 kB / 0.5365 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.3282, allocations: 8.812 kB / 0.5365 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3282, allocations: 1.438 kB / 0.5365 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.3284, allocations: 88.53 kB / 0.5366 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008426/0.3293, allocations: 0.6165 MB / 0.5372 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.3297, allocations: 175.4 kB / 0.5373 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.3299, allocations: 99.08 kB / 0.5374 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.3299, allocations: 2.375 kB / 0.5374 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004809/0.3304, allocations: 438.5 kB / 0.5378 GB, free: 7.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.3304, allocations: 0 / 0.5378 GB, free: 7.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008531/0.3312, allocations: 440.5 kB / 0.5383 GB, free: 7.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.3314, allocations: 220.3 kB / 0.5385 GB, free: 6.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.3318, allocations: 334 kB / 0.5388 GB, free: 6.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3318, allocations: 34.58 kB / 0.5388 GB, free: 6.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3319, allocations: 135.2 kB / 0.5389 GB, free: 6.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.332, allocations: 53.95 kB / 0.539 GB, free: 6.504 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.3321, allocations: 50.3 kB / 0.539 GB, free: 6.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3322, allocations: 337.9 kB / 0.5394 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.3324, allocations: 54.59 kB / 0.5394 GB, free: 6.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.3326, allocations: 141.1 kB / 0.5396 GB, free: 5.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.333, allocations: 360.9 kB / 0.5399 GB, free: 5.633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3331, allocations: 1 kB / 0.5399 GB, free: 5.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000569/0.3336, allocations: 359.8 kB / 0.5402 GB, free: 5.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.331e-05/0.3337, allocations: 97.56 kB / 0.5403 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3337, allocations: 2.281 kB / 0.5403 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3338, allocations: 4.531 kB / 0.5403 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.3339, allocations: 26.64 kB / 0.5404 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.3339, allocations: 3.562 kB / 0.5404 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.334, allocations: 32.41 kB / 0.5404 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.334, allocations: 10.06 kB / 0.5404 GB, free: 5.258 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002489/0.3343, allocations: 269.6 kB / 0.5407 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.478e-05/0.3344, allocations: 34.27 kB / 0.5407 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.3344, allocations: 26.48 kB / 0.5407 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3344, allocations: 3.156 kB / 0.5407 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3344, allocations: 1.281 kB / 0.5407 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3345, allocations: 4 kB / 0.5407 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.3348, allocations: 292.5 kB / 0.541 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3348, allocations: 4.938 kB / 0.541 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.686e-05/0.3348, allocations: 4.438 kB / 0.541 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3348, allocations: 1.031 kB / 0.541 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.3348, allocations: 15.83 kB / 0.541 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3349, allocations: 1.125 kB / 0.541 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3349, allocations: 5.031 kB / 0.541 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.3355, allocations: 442.2 kB / 0.5415 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.778e-05/0.3356, allocations: 108.2 kB / 0.5416 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.3357, allocations: 13.06 kB / 0.5416 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3358, allocations: 19.08 kB / 0.5416 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.3359, allocations: 16.67 kB / 0.5416 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.3359, allocations: 13.38 kB / 0.5416 GB, free: 4.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.3361, allocations: 243 kB / 0.5419 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3362, allocations: 0 / 0.5419 GB, free: 4.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.3365, allocations: 76.06 kB / 0.5419 GB, free: 4.051 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.002332/0.3388, allocations: 1.291 MB / 0.5432 GB, free: 3.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.3394, allocations: 404.2 kB / 0.5436 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3394, allocations: 0 / 0.5436 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.3398, allocations: 338.2 kB / 0.5439 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.3402, allocations: 56.39 kB / 0.544 GB, free: 2.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003665/0.3439, allocations: 2.873 MB / 0.5468 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.3443, allocations: 0.7556 MB / 0.5475 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.3444, allocations: 29.83 kB / 0.5475 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3445, allocations: 63.42 kB / 0.5476 GB, free: 15.42 MB / 414.1 MB Notification: Performance of SimCode: time 1.994e-06/0.3445, allocations: 0 / 0.5476 GB, free: 15.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.3715, allocations: 6.24 MB / 0.5537 GB, free: 9.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.366, allocations: 3.938 kB / 0.5537 GB, free: 9.258 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches