Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008937/0.0008937, allocations: 95.58 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008944/0.0008944, allocations: 176.9 kB / 16.56 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.4 MB / 222.7 MB, free: 5.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3052/0.3052, allocations: 43.55 MB / 314.5 MB, free: 8.781 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004693/0.0004695, allocations: 12 kB / 383.9 MB, free: 8.059 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09298/0.09346, allocations: 58.86 MB / 442.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001944/0.09544, allocations: 1.554 MB / 444.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.09673, allocations: 0.8631 MB / 445.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.09686, allocations: 3.938 kB / 445.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005231/0.0974, allocations: 163.6 kB / 445.3 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/0.09766, allocations: 107.7 kB / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.09806, allocations: 139.7 kB / 445.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.0983, allocations: 167.7 kB / 445.7 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.302e-05/0.09841, allocations: 25.67 kB / 445.8 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.09855, allocations: 99.66 kB / 445.9 MB, free: 9.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.09869, allocations: 99.64 kB / 445.9 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.09872, allocations: 8 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.09884, allocations: 35.98 kB / 446 MB, free: 9.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.09892, allocations: 55.81 kB / 446 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.158e-05/0.099, allocations: 65.58 kB / 446.1 MB, free: 9.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.09923, allocations: 207.7 kB / 446.3 MB, free: 9.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.09924, allocations: 3.938 kB / 446.3 MB, free: 9.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.09925, allocations: 4 kB / 446.3 MB, free: 9.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09926, allocations: 0 / 446.3 MB, free: 9.484 MB / 382.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.0007572/0.1, allocations: 0.6182 MB / 446.9 MB, free: 8.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.1001, allocations: 8.031 kB / 446.9 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.1001, allocations: 31.72 kB / 447 MB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.1005, allocations: 265.6 kB / 447.2 MB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.1006, allocations: 101 kB / 447.3 MB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.1006, allocations: 16 kB / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.1009, allocations: 153.6 kB / 447.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1009, allocations: 4 kB / 447.5 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.1009, allocations: 7.953 kB / 447.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.1009, allocations: 0 / 447.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.1012, allocations: 99.81 kB / 447.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007542/0.1019, allocations: 0.6103 MB / 448.2 MB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.1023, allocations: 183.9 kB / 448.4 MB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1023, allocations: 3.984 kB / 448.4 MB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003892/0.1027, allocations: 433.1 kB / 448.8 MB, free: 6.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.1027, allocations: 0 / 448.8 MB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.000837/0.1035, allocations: 0.662 MB / 449.5 MB, free: 5.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.1036, allocations: 221.5 kB / 449.7 MB, free: 5.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.1039, allocations: 316.9 kB / 450 MB, free: 5.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.104, allocations: 37.7 kB / 450.1 MB, free: 5.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.333e-05/0.1041, allocations: 132.6 kB / 450.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.1041, allocations: 55.34 kB / 450.2 MB, free: 5.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.1041, allocations: 4 kB / 450.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1043, allocations: 338.8 kB / 450.6 MB, free: 4.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.1044, allocations: 56.16 kB / 450.6 MB, free: 4.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.1046, allocations: 146.6 kB / 450.8 MB, free: 4.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1048, allocations: 157.3 kB / 450.9 MB, free: 4.363 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1048, allocations: 4 kB / 450.9 MB, free: 4.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004739/0.1053, allocations: 350.8 kB / 451.3 MB, free: 3.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.936e-05/0.1054, allocations: 97.08 kB / 451.4 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1054, allocations: 0 / 451.4 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1054, allocations: 8 kB / 451.4 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1055, allocations: 23.94 kB / 451.4 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1055, allocations: 7.984 kB / 451.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1056, allocations: 23.84 kB / 451.4 MB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.1057, allocations: 12 kB / 451.4 MB, free: 3.805 MB / 382.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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.1059, allocations: 265.5 kB / 451.7 MB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.1059, allocations: 35.67 kB / 451.7 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.106, allocations: 29.64 kB / 451.8 MB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.106, allocations: 4 kB / 451.8 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.106, allocations: 0 / 451.8 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.106, allocations: 0 / 451.8 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.1062, allocations: 293.4 kB / 452 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1062, allocations: 0 / 452 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.787e-05/0.1063, allocations: 12 kB / 452.1 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.1063, allocations: 3.953 kB / 452.1 MB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.1063, allocations: 15.92 kB / 452.1 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.1063, allocations: 4 kB / 452.1 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1063, allocations: 0 / 452.1 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005799/0.1069, allocations: 470.9 kB / 452.5 MB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.965e-05/0.107, allocations: 100.8 kB / 452.6 MB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.803e-05/0.1071, allocations: 12 kB / 452.7 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1072, allocations: 19.98 kB / 452.7 MB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.1072, allocations: 27.97 kB / 452.7 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1073, allocations: 8 kB / 452.7 MB, free: 2.379 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.1075, allocations: 236.4 kB / 452.9 MB, free: 2.145 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1075, allocations: 0 / 452.9 MB, free: 2.145 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1078, allocations: 75.84 kB / 453 MB, free: 2.07 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000829/0.1086, allocations: 431.1 kB / 453.4 MB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004984/0.1091, allocations: 397.9 kB / 453.8 MB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1092, allocations: 0 / 453.8 MB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.1095, allocations: 358.2 kB / 454.2 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.1097, allocations: 36.38 kB / 454.2 MB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.1104, allocations: 485 kB / 454.7 MB, free: 336 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1436/0.254, allocations: 0.7504 MB / 455.4 MB, free: 46.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.2541, allocations: 34.28 kB / 455.5 MB, free: 46.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.2542, allocations: 19.31 kB / 455.5 MB, free: 46.03 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2542, allocations: 0 / 455.5 MB, free: 46.03 MB / 382.1 MB Notification: Performance of Templates: time 0.005296/0.2595, allocations: 3.046 MB / 458.5 MB, free: 45.88 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches