Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009657/0.0009658, allocations: 93.33 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002361/0.0002361, allocations: 4 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002228/0.1034, allocations: 1.607 MB / 361.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.1052, allocations: 1.146 MB / 362.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.1053, allocations: 11.94 kB / 362.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005453/0.1058, allocations: 135.7 kB / 362.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.1062, allocations: 135.5 kB / 362.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004038/0.1066, allocations: 143.2 kB / 363.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.1068, allocations: 187.4 kB / 363.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1069, allocations: 49.5 kB / 363.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.512e-05/0.107, allocations: 63.66 kB / 363.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1071, allocations: 63.69 kB / 363.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.1072, allocations: 4 kB / 363.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.1073, allocations: 43.97 kB / 363.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.1073, allocations: 47.77 kB / 363.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.701e-05/0.1074, allocations: 89.2 kB / 363.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001947/0.1076, allocations: 155.9 kB / 363.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1076, allocations: 0 / 363.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1077, allocations: 0 / 363.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1077, allocations: 0 / 363.8 MB, free: 9.422 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006175/0.1083, allocations: 496.3 kB / 364.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.1083, allocations: 8.031 kB / 364.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.1084, allocations: 24.66 kB / 364.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.1087, allocations: 266.8 kB / 364.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.1087, allocations: 8.375 kB / 364.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.1088, allocations: 12.12 kB / 364.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.1091, allocations: 138.7 kB / 364.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1091, allocations: 4 kB / 364.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.1091, allocations: 0 / 364.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1091, allocations: 8 kB / 364.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.668e-05/0.1092, allocations: 35.91 kB / 364.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004754/0.1097, allocations: 358.4 kB / 365.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.1099, allocations: 107.9 kB / 365.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.096e-05/0.11, allocations: 50.5 kB / 365.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.11, allocations: 0 / 365.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.1102, allocations: 79.31 kB / 365.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.1102, allocations: 4 kB / 365.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003381/0.1106, allocations: 145.3 kB / 365.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.1106, allocations: 128.5 kB / 365.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.1109, allocations: 281.2 kB / 365.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1109, allocations: 29.7 kB / 365.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.111, allocations: 120.2 kB / 366 MB, free: 6.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.1111, allocations: 19.73 kB / 366 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.1111, allocations: 21.66 kB / 366.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1112, allocations: 330.8 kB / 366.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.452e-05/0.1113, allocations: 20 kB / 366.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.607e-05/0.1114, allocations: 74 kB / 366.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.1115, allocations: 76.16 kB / 366.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1115, allocations: 0 / 366.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000203/0.1117, allocations: 117.5 kB / 366.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.1118, allocations: 4 kB / 366.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1118, allocations: 0 / 366.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1118, allocations: 4 kB / 366.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-05/0.1119, allocations: 15.92 kB / 366.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1119, allocations: 4 kB / 366.7 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.811e-05/0.112, allocations: 11.94 kB / 366.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.112, allocations: 8.125 kB / 366.7 MB, free: 6.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001218/0.1121, allocations: 146.1 kB / 366.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.1122, allocations: 69.34 kB / 366.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.808e-05/0.1122, allocations: 25.7 kB / 366.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1123, allocations: 4 kB / 367 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1123, allocations: 4 kB / 367 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.1123, allocations: 3.938 kB / 367 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.1125, allocations: 221.5 kB / 367.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.1125, allocations: 4.062 kB / 367.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.384e-05/0.1125, allocations: 15.92 kB / 367.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1125, allocations: 0 / 367.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.1125, allocations: 0 / 367.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.1126, allocations: 11.92 kB / 367.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1126, allocations: 0 / 367.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002226/0.1128, allocations: 162.4 kB / 367.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/0.1129, allocations: 108.9 kB / 367.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.1129, allocations: 0 / 367.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.341e-05/0.113, allocations: 7.984 kB / 367.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.113, allocations: 8 kB / 367.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1131, allocations: 11.92 kB / 367.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.1132, allocations: 200.5 kB / 367.7 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1133, allocations: 0 / 367.7 MB, free: 5.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.1135, allocations: 31.98 kB / 367.7 MB, free: 5.012 MB / 302.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0009065/0.1144, allocations: 407 kB / 368.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.1146, allocations: 67.91 kB / 368.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/0.1147, allocations: 0 / 368.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.767e-05/0.1147, allocations: 35.86 kB / 368.2 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.1151, allocations: 49.97 kB / 368.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005346/0.1157, allocations: 405.5 kB / 368.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.1159, allocations: 0.7244 MB / 369.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.116, allocations: 19.44 kB / 369.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.116, allocations: 0 / 369.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of Templates: time 0.004325/0.1203, allocations: 2.614 MB / 372 MB, free: 0.7852 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches