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.001251/0.001251, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 227.4 MB / 246.9 MB, free: 9.008 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2043/0.2043, allocations: 46.1 MB / 344.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 77.97 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1037, allocations: 62.45 MB / 479.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003344/0.1071, allocations: 1.967 MB / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.109, allocations: 1.185 MB / 483.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1091, allocations: 4 kB / 483.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00068/0.1098, allocations: 171.6 kB / 483.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003763/0.1102, allocations: 147.6 kB / 483.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.1106, allocations: 139.7 kB / 483.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.1109, allocations: 267.3 kB / 483.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1111, allocations: 33.69 kB / 483.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.1112, allocations: 107.5 kB / 483.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.1114, allocations: 107.6 kB / 484 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.1114, allocations: 8 kB / 484 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.1116, allocations: 51.92 kB / 484.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.519e-05/0.1117, allocations: 63.8 kB / 484.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.1118, allocations: 103.4 kB / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1121, allocations: 211.8 kB / 484.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1121, allocations: 0 / 484.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1121, allocations: 0 / 484.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1121, allocations: 4 kB / 484.5 MB, free: 1.137 MB / 350.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.001032/0.1132, allocations: 0.6573 MB / 485.1 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1132, allocations: 13.95 kB / 485.1 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.201e-05/0.1133, allocations: 28.66 kB / 485.2 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.1136, allocations: 287.4 kB / 485.4 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.1138, allocations: 93.67 kB / 485.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.1138, allocations: 19.94 kB / 485.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.1141, allocations: 160 kB / 485.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1141, allocations: 0 / 485.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.1142, allocations: 8 kB / 485.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1142, allocations: 4 kB / 485.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.1144, allocations: 91.86 kB / 485.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008272/0.1153, allocations: 0.6064 MB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.1156, allocations: 183.9 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.1158, allocations: 94.48 kB / 486.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1159, allocations: 0 / 486.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/0.1163, allocations: 437.1 kB / 487.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.953e-06/0.1163, allocations: 0 / 487.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008562/0.1172, allocations: 442.2 kB / 487.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.1173, allocations: 225.6 kB / 487.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.1177, allocations: 326.5 kB / 488.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1177, allocations: 33.7 kB / 488.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/0.1178, allocations: 136.7 kB / 488.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.497e-05/0.1179, allocations: 47.34 kB / 488.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.821e-05/0.118, allocations: 53.7 kB / 488.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1181, allocations: 334.8 kB / 488.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.1182, allocations: 56.34 kB / 488.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.1184, allocations: 146.7 kB / 488.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/0.1189, allocations: 359 kB / 489.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1189, allocations: 0 / 489.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005505/0.1194, allocations: 358 kB / 489.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.351e-05/0.1195, allocations: 97.08 kB / 489.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1195, allocations: 4 kB / 489.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1195, allocations: 4 kB / 489.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1196, allocations: 19.94 kB / 489.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1197, allocations: 3.984 kB / 489.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.1198, allocations: 28.16 kB / 489.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.1198, allocations: 8 kB / 489.7 MB, free: 11.29 MB / 366.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.0002212/0.1201, allocations: 273.7 kB / 490 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.056e-05/0.1201, allocations: 39.56 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.722e-05/0.1202, allocations: 25.7 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1202, allocations: 4 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.1202, allocations: 0 / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1202, allocations: 4 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002831/0.1205, allocations: 285.5 kB / 490.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1205, allocations: 4 kB / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.183e-05/0.1206, allocations: 19.86 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1206, allocations: 4 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.1206, allocations: 4 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1206, allocations: 4 kB / 490.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1206, allocations: 3.938 kB / 490.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.1213, allocations: 443.4 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.819e-05/0.1214, allocations: 100.8 kB / 490.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.868e-05/0.1215, allocations: 12 kB / 490.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.1216, allocations: 19.98 kB / 491 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.1217, allocations: 27.89 kB / 491 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.1217, allocations: 8 kB / 491 MB, free: 9.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000241/0.122, allocations: 245.9 kB / 491.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.122, allocations: 0 / 491.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.1223, allocations: 75.84 kB / 491.3 MB, free: 9.586 MB / 366.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.0009632/0.1233, allocations: 432 kB / 491.7 MB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.1239, allocations: 390.2 kB / 492.1 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1239, allocations: 0 / 492.1 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003624/0.1243, allocations: 346.1 kB / 492.5 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.1247, allocations: 52.47 kB / 492.5 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008415/0.1255, allocations: 0.5323 MB / 493 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1258, allocations: 0.7482 MB / 493.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/0.1259, allocations: 23.44 kB / 493.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of SimCode: time 1.713e-06/0.1259, allocations: 0 / 493.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of Templates: time 0.00588/0.1318, allocations: 3.571 MB / 497.4 MB, free: 3.52 MB / 366.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