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.001192/0.001192, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 71.89 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3774, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003329/0.3808, allocations: 1.911 MB / 0.5335 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3828, allocations: 1.184 MB / 0.5347 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.383, allocations: 6 kB / 0.5347 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000726/0.3837, allocations: 183.6 kB / 0.5348 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.3842, allocations: 170.4 kB / 0.535 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004446/0.3846, allocations: 166.2 kB / 0.5352 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.385, allocations: 283 kB / 0.5354 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.3851, allocations: 28.8 kB / 0.5355 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.3853, allocations: 122.3 kB / 0.5356 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.3854, allocations: 119.4 kB / 0.5357 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.3855, allocations: 17.31 kB / 0.5357 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.3857, allocations: 62.44 kB / 0.5358 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.3858, allocations: 65.41 kB / 0.5358 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.3859, allocations: 114 kB / 0.5359 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000389/0.3863, allocations: 280.1 kB / 0.5362 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3863, allocations: 4 kB / 0.5362 GB, free: 10.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.3863, allocations: 0 / 0.5362 GB, free: 10.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3864, allocations: 4.969 kB / 0.5362 GB, free: 10.19 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.0009867/0.3873, allocations: 0.66 MB / 0.5369 GB, free: 9.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3874, allocations: 10.8 kB / 0.5369 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.629e-05/0.3875, allocations: 33.34 kB / 0.5369 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.3879, allocations: 276.7 kB / 0.5372 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.388, allocations: 96.2 kB / 0.5373 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.388, allocations: 20.12 kB / 0.5373 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.3883, allocations: 155.6 kB / 0.5374 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3884, allocations: 0 / 0.5374 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.3884, allocations: 4.438 kB / 0.5374 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3884, allocations: 2.312 kB / 0.5374 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.3887, allocations: 100 kB / 0.5375 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008425/0.3895, allocations: 0.6081 MB / 0.5381 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.3899, allocations: 177.1 kB / 0.5383 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.3901, allocations: 90.12 kB / 0.5384 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.3901, allocations: 6.469 kB / 0.5384 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004811/0.3906, allocations: 445.4 kB / 0.5388 GB, free: 7.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.3906, allocations: 0 / 0.5388 GB, free: 7.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.000894/0.3915, allocations: 444.8 kB / 0.5392 GB, free: 7.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.3917, allocations: 223.2 kB / 0.5394 GB, free: 7.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.392, allocations: 327.2 kB / 0.5398 GB, free: 7.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3921, allocations: 37.19 kB / 0.5398 GB, free: 6.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3922, allocations: 131.3 kB / 0.5399 GB, free: 6.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.902e-05/0.3923, allocations: 49.89 kB / 0.54 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.599e-05/0.3924, allocations: 51.42 kB / 0.54 GB, free: 6.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.3925, allocations: 333.3 kB / 0.5403 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3927, allocations: 58.38 kB / 0.5404 GB, free: 6.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.3929, allocations: 148.8 kB / 0.5405 GB, free: 6.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.3933, allocations: 357.4 kB / 0.5409 GB, free: 5.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3933, allocations: 5.531 kB / 0.5409 GB, free: 5.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005372/0.3939, allocations: 350.8 kB / 0.5412 GB, free: 5.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.087e-05/0.3939, allocations: 100.5 kB / 0.5413 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.394, allocations: 1.375 kB / 0.5413 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.394, allocations: 8.188 kB / 0.5413 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.3941, allocations: 22.33 kB / 0.5413 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3941, allocations: 4.344 kB / 0.5413 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.3943, allocations: 29.12 kB / 0.5414 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.3943, allocations: 12.64 kB / 0.5414 GB, free: 5.566 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.000244/0.3945, allocations: 262.4 kB / 0.5416 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.3946, allocations: 33.56 kB / 0.5417 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.403e-05/0.3947, allocations: 26.64 kB / 0.5417 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3947, allocations: 2.281 kB / 0.5417 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3947, allocations: 1.219 kB / 0.5417 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3947, allocations: 9.016 kB / 0.5417 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/0.395, allocations: 288.2 kB / 0.542 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.395, allocations: 5.016 kB / 0.542 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.496e-05/0.3951, allocations: 12.03 kB / 0.542 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3951, allocations: 1.281 kB / 0.542 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3951, allocations: 12.22 kB / 0.542 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3951, allocations: 1.062 kB / 0.542 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3951, allocations: 1.188 kB / 0.542 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006746/0.3958, allocations: 449.8 kB / 0.5424 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.621e-05/0.3959, allocations: 104.1 kB / 0.5425 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.47e-05/0.3959, allocations: 20.66 kB / 0.5426 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3961, allocations: 14.92 kB / 0.5426 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.23e-05/0.3962, allocations: 24.38 kB / 0.5426 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.3962, allocations: 10.09 kB / 0.5426 GB, free: 4.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.3965, allocations: 245.9 kB / 0.5428 GB, free: 4.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3965, allocations: 1.094 kB / 0.5428 GB, free: 4.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.3968, allocations: 59.5 kB / 0.5429 GB, free: 4.367 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.001034/0.3979, allocations: 431.7 kB / 0.5433 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005955/0.3985, allocations: 387.9 kB / 0.5437 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.3985, allocations: 0 / 0.5437 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.3989, allocations: 350 kB / 0.544 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.3993, allocations: 57.25 kB / 0.5441 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009182/0.4002, allocations: 494.7 kB / 0.5445 GB, free: 3.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.4006, allocations: 0.749 MB / 0.5453 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/0.4006, allocations: 28.83 kB / 0.5453 GB, free: 2.449 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4006, allocations: 0 / 0.5453 GB, free: 2.449 MB / 398.1 MB Notification: Performance of Templates: time 0.006292/0.4069, allocations: 3.589 MB / 0.5488 GB, free: 15.47 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/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