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: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001739/0.001739, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002256/0.002256, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2671/0.2671, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 79.86 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3309, allocations: 62.44 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003465/0.3344, allocations: 1.913 MB / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3365, allocations: 1.19 MB / 0.534 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.3366, allocations: 2.344 kB / 0.534 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007646/0.3374, allocations: 182.8 kB / 0.5342 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000572/0.338, allocations: 167.3 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006131/0.3386, allocations: 163.8 kB / 0.5345 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005047/0.3391, allocations: 303.3 kB / 0.5348 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3393, allocations: 22.19 kB / 0.5348 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.3395, allocations: 117 kB / 0.5349 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.3398, allocations: 120.9 kB / 0.535 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.3399, allocations: 16.5 kB / 0.5351 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.3401, allocations: 63 kB / 0.5351 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.3403, allocations: 69.41 kB / 0.5352 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.3405, allocations: 109.7 kB / 0.5353 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006235/0.3411, allocations: 279.3 kB / 0.5355 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3411, allocations: 1.125 kB / 0.5356 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.3411, allocations: 0 / 0.5356 GB, free: 10.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.3411, allocations: 3.938 kB / 0.5356 GB, free: 10.2 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.001586/0.3427, allocations: 0.669 MB / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.3428, allocations: 9.766 kB / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.3429, allocations: 32.81 kB / 0.5362 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.3434, allocations: 273.9 kB / 0.5365 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.3436, allocations: 99 kB / 0.5366 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.3436, allocations: 20.25 kB / 0.5366 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.344, allocations: 163.8 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.344, allocations: 0 / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.3441, allocations: 4.031 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3441, allocations: 2.625 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.3444, allocations: 89.19 kB / 0.5369 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.3454, allocations: 0.6116 MB / 0.5375 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.3458, allocations: 175.6 kB / 0.5376 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.346, allocations: 90.62 kB / 0.5377 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.597e-05/0.346, allocations: 10.81 kB / 0.5377 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005076/0.3465, allocations: 429.8 kB / 0.5381 GB, free: 7.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.3466, allocations: 5.25 kB / 0.5381 GB, free: 7.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009769/0.3475, allocations: 443.6 kB / 0.5386 GB, free: 7.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.3477, allocations: 219.6 kB / 0.5388 GB, free: 7.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004503/0.3481, allocations: 326.2 kB / 0.5391 GB, free: 7.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.3482, allocations: 35.23 kB / 0.5391 GB, free: 7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3483, allocations: 130.5 kB / 0.5392 GB, free: 6.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/0.3484, allocations: 52.94 kB / 0.5393 GB, free: 6.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3485, allocations: 55.39 kB / 0.5394 GB, free: 6.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3487, allocations: 334.7 kB / 0.5397 GB, free: 6.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.3489, allocations: 57.88 kB / 0.5397 GB, free: 6.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.3491, allocations: 140.7 kB / 0.5399 GB, free: 6.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.3496, allocations: 358.3 kB / 0.5402 GB, free: 5.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3496, allocations: 0 / 0.5402 GB, free: 5.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006288/0.3502, allocations: 364.5 kB / 0.5406 GB, free: 5.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/0.3503, allocations: 95.72 kB / 0.5406 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3503, allocations: 6.812 kB / 0.5406 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.3503, allocations: 3.125 kB / 0.5407 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.3504, allocations: 27.41 kB / 0.5407 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.3505, allocations: 4.156 kB / 0.5407 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.3506, allocations: 27.02 kB / 0.5407 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.3507, allocations: 10.25 kB / 0.5407 GB, free: 5.586 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.0002475/0.3509, allocations: 273.6 kB / 0.541 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.259e-05/0.351, allocations: 34.59 kB / 0.541 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.982e-05/0.3511, allocations: 26.33 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3511, allocations: 2.969 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3511, allocations: 0 / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3511, allocations: 1.406 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.3514, allocations: 292.9 kB / 0.5413 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3514, allocations: 0 / 0.5413 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.972e-05/0.3515, allocations: 8.938 kB / 0.5413 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.3515, allocations: 1.188 kB / 0.5413 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.3515, allocations: 15.8 kB / 0.5413 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.345e-06/0.3516, allocations: 9 kB / 0.5414 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3516, allocations: 1.25 kB / 0.5414 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.3523, allocations: 442.8 kB / 0.5418 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.3524, allocations: 108.1 kB / 0.5419 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.3525, allocations: 13.34 kB / 0.5419 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.3526, allocations: 19.05 kB / 0.5419 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-05/0.3527, allocations: 20.23 kB / 0.5419 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.3528, allocations: 13.92 kB / 0.5419 GB, free: 4.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.353, allocations: 238 kB / 0.5422 GB, free: 4.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.873e-06/0.353, allocations: 0 / 0.5422 GB, free: 4.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003631/0.3534, allocations: 69.42 kB / 0.5422 GB, free: 4.383 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.001076/0.3545, allocations: 422.1 kB / 0.5426 GB, free: 4.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006461/0.3552, allocations: 391.3 kB / 0.543 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.3552, allocations: 1.094 kB / 0.543 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.3556, allocations: 344.7 kB / 0.5433 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.3559, allocations: 61.66 kB / 0.5434 GB, free: 3.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009096/0.3569, allocations: 455.4 kB / 0.5438 GB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.3573, allocations: 0.7521 MB / 0.5446 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.3574, allocations: 42.17 kB / 0.5446 GB, free: 2.496 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.3575, allocations: 23.52 kB / 0.5446 GB, free: 2.488 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3575, allocations: 1.062 kB / 0.5446 GB, free: 2.488 MB / 398.1 MB Notification: Performance of Templates: time 0.009468/0.367, allocations: 3.495 MB / 0.548 GB, free: 15.6 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches