Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.5 MB / 245.4 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007203/0.0007202, allocations: 96.22 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002281/0.0002282, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1998, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09152/0.2913, allocations: 82.25 MB / 490.9 MB, free: 9.367 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.2916, allocations: 89.72 kB / 491 MB, free: 9.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01948/0.3111, allocations: 7.351 MB / 498.4 MB, free: 1.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3111, allocations: 0 / 498.4 MB, free: 1.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.3111, allocations: 8 kB / 498.4 MB, free: 1.926 MB / 362.7 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.0006588/0.3118, allocations: 0.5236 MB / 498.9 MB, free: 1.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3118, allocations: 15.97 kB / 498.9 MB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.3119, allocations: 16.75 kB / 498.9 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.3123, allocations: 270.8 kB / 499.2 MB, free: 1.008 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.3123, allocations: 8.375 kB / 499.2 MB, free: 1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.3123, allocations: 4.375 kB / 499.2 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.3126, allocations: 151.3 kB / 499.3 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3126, allocations: 8.156 kB / 499.3 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.3127, allocations: 3.938 kB / 499.4 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.3127, allocations: 0 / 499.4 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.534e-05/0.3128, allocations: 39.92 kB / 499.4 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.3132, allocations: 378.2 kB / 499.8 MB, free: 356 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.3135, allocations: 111.9 kB / 499.9 MB, free: 216 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.3135, allocations: 42.56 kB / 499.9 MB, free: 164 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.3136, allocations: 4 kB / 499.9 MB, free: 160 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/0.3137, allocations: 75.38 kB / 500 MB, free: 72 kB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 3.646e-06/0.3137, allocations: 4 kB / 500 MB, free: 68 kB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003462/0.3141, allocations: 141.5 kB / 0.4884 GB, free: 15.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/0.3142, allocations: 140.5 kB / 0.4885 GB, free: 15.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.3145, allocations: 269 kB / 0.4888 GB, free: 15.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.3146, allocations: 29.7 kB / 0.4888 GB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.3146, allocations: 124.1 kB / 0.4889 GB, free: 15.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.3147, allocations: 16.06 kB / 0.489 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.3147, allocations: 4 kB / 0.489 GB, free: 15.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3148, allocations: 338.8 kB / 0.4893 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.973e-05/0.3149, allocations: 23.81 kB / 0.4893 GB, free: 14.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-05/0.315, allocations: 69.94 kB / 0.4894 GB, free: 14.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.3151, allocations: 80.25 kB / 0.4895 GB, free: 14.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3151, allocations: 0 / 0.4895 GB, free: 14.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001921/0.3153, allocations: 117.7 kB / 0.4896 GB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.3153, allocations: 4 kB / 0.4896 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3153, allocations: 8.125 kB / 0.4896 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3154, allocations: 0 / 0.4896 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.269e-05/0.3154, allocations: 19.92 kB / 0.4896 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3155, allocations: 0 / 0.4896 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.81e-05/0.3155, allocations: 8 kB / 0.4896 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.3155, allocations: 4 kB / 0.4896 GB, free: 14.58 MB / 378.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.3157, allocations: 149.7 kB / 0.4898 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.423e-05/0.3158, allocations: 69.34 kB / 0.4898 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.316, allocations: 119.3 kB / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.316, allocations: 0 / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.316, allocations: 4 kB / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.316, allocations: 0 / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.3162, allocations: 241.5 kB / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3162, allocations: 0 / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.01e-05/0.3163, allocations: 4 kB / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3163, allocations: 4 kB / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3163, allocations: 0 / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3163, allocations: 4.062 kB / 0.4902 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/0.3163, allocations: 4 kB / 0.4902 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.3166, allocations: 162.5 kB / 0.4903 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.939e-05/0.3167, allocations: 116.8 kB / 0.4904 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.3167, allocations: 4 kB / 0.4905 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.752e-05/0.3168, allocations: 15.98 kB / 0.4905 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.3168, allocations: 4.094 kB / 0.4905 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.3168, allocations: 3.938 kB / 0.4905 GB, free: 13.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001911/0.317, allocations: 204.4 kB / 0.4907 GB, free: 13.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.317, allocations: 3.938 kB / 0.4907 GB, free: 13.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002527/0.3173, allocations: 39.98 kB / 0.4907 GB, free: 13.34 MB / 378.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0008449/0.3181, allocations: 423.6 kB / 0.4911 GB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.3184, allocations: 79.89 kB / 0.4912 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3184, allocations: 0 / 0.4912 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.296e-05/0.3185, allocations: 27.94 kB / 0.4912 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.3189, allocations: 69.89 kB / 0.4913 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005426/0.3194, allocations: 394.9 kB / 0.4917 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.3197, allocations: 0.7282 MB / 0.4924 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.3198, allocations: 23.44 kB / 0.4924 GB, free: 11.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3198, allocations: 0 / 0.4924 GB, free: 11.7 MB / 378.7 MB Notification: Performance of Templates: time 0.004476/0.3243, allocations: 2.642 MB / 0.495 GB, free: 9.062 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches