Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002659/0.002659, allocations: 187.3 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.851/3.851, allocations: 205.4 MB / 222.6 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001916/0.001916, allocations: 106.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.185/0.185, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009437/0.0009444, allocations: 13.78 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2064, allocations: 50.37 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.004298/0.2107, allocations: 1.547 MB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004303/0.2152, allocations: 0.8785 MB / 444.8 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002584/0.2155, allocations: 3.938 kB / 444.8 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009668/0.2165, allocations: 135.6 kB / 444.9 MB, free: 9.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006026/0.2171, allocations: 91.69 kB / 445 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.2185, allocations: 154.5 kB / 445.1 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005239/0.219, allocations: 119.7 kB / 445.3 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.2193, allocations: 25.55 kB / 445.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.2196, allocations: 55.77 kB / 445.3 MB, free: 8.609 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.2199, allocations: 63.69 kB / 445.4 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.221e-05/0.22, allocations: 4 kB / 445.4 MB, free: 8.543 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003302/0.2203, allocations: 31.92 kB / 445.4 MB, free: 8.512 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2205, allocations: 39.83 kB / 445.5 MB, free: 8.473 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2206, allocations: 49.64 kB / 445.5 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005299/0.2212, allocations: 140.5 kB / 445.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2212, allocations: 4 kB / 445.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.2213, allocations: 4 kB / 445.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.2213, allocations: 0 / 445.7 MB, free: 8.273 MB / 282.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.001567/0.2229, allocations: 496 kB / 446.2 MB, free: 7.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.76e-05/0.223, allocations: 8.031 kB / 446.2 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.2231, allocations: 15.81 kB / 446.2 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006771/0.2238, allocations: 257.7 kB / 446.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.2239, allocations: 4 kB / 446.4 MB, free: 7.418 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.224, allocations: 11.94 kB / 446.4 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006462/0.2246, allocations: 140.2 kB / 446.6 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.2247, allocations: 3.938 kB / 446.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.2248, allocations: 8 kB / 446.6 MB, free: 7.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2248, allocations: 3.938 kB / 446.6 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002471/0.225, allocations: 35.97 kB / 446.6 MB, free: 7.195 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009473/0.226, allocations: 362.3 kB / 447 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/0.2266, allocations: 111.9 kB / 447.1 MB, free: 6.648 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-05/0.2267, allocations: 0 / 447.1 MB, free: 6.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.227, allocations: 67.52 kB / 447.2 MB, free: 6.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 4.409e-06/0.227, allocations: 0 / 447.2 MB, free: 6.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.00078/0.2278, allocations: 145.3 kB / 447.3 MB, free: 6.422 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.228, allocations: 136.5 kB / 447.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.2286, allocations: 268.9 kB / 447.7 MB, free: 5.984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.2286, allocations: 29.7 kB / 447.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2288, allocations: 170.6 kB / 447.9 MB, free: 5.781 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.2288, allocations: 19.75 kB / 447.9 MB, free: 5.762 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.2289, allocations: 4.25 kB / 447.9 MB, free: 5.758 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.668e-05/0.229, allocations: 322.8 kB / 448.2 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.2292, allocations: 16 kB / 448.2 MB, free: 5.418 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.2294, allocations: 73.92 kB / 448.3 MB, free: 5.324 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001751/0.2296, allocations: 32.28 kB / 448.4 MB, free: 5.293 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.2296, allocations: 0 / 448.4 MB, free: 5.293 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006003/0.2302, allocations: 105.5 kB / 448.5 MB, free: 5.184 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.2303, allocations: 4 kB / 448.5 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.2303, allocations: 7.984 kB / 448.5 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/0.2304, allocations: 0 / 448.5 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.2306, allocations: 12 kB / 448.5 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.2306, allocations: 8.109 kB / 448.5 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.2309, allocations: 15.86 kB / 448.5 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.2309, allocations: 3.938 kB / 448.5 MB, free: 5.133 MB / 282.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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.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.0002682/0.2312, allocations: 150.7 kB / 448.7 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.2315, allocations: 57.5 kB / 448.7 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.2316, allocations: 21.72 kB / 448.7 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.2316, allocations: 0 / 448.7 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.2316, allocations: 12 kB / 448.7 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.2317, allocations: 3.984 kB / 448.7 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.232, allocations: 229.5 kB / 449 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2321, allocations: 0 / 449 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.039e-05/0.2322, allocations: 4 kB / 449 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.2322, allocations: 4 kB / 449 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.2323, allocations: 0 / 449 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.038e-05/0.2323, allocations: 4 kB / 449 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.2323, allocations: 0 / 449 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005788/0.2329, allocations: 185.9 kB / 449.2 MB, free: 4.375 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.2331, allocations: 112.8 kB / 449.3 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/0.2332, allocations: 4 kB / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.2334, allocations: 4 kB / 449.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.2335, allocations: 11.94 kB / 449.3 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.2336, allocations: 12.06 kB / 449.3 MB, free: 4.215 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004136/0.234, allocations: 192.5 kB / 449.5 MB, free: 4.023 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.342e-06/0.234, allocations: 0 / 449.5 MB, free: 4.023 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007455/0.2348, allocations: 32 kB / 449.5 MB, free: 3.992 MB / 282.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (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.002432/0.2373, allocations: 413.3 kB / 449.9 MB, free: 3.582 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005863/0.238, allocations: 64.09 kB / 450 MB, free: 3.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.966e-06/0.2381, allocations: 4.062 kB / 450 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.2382, allocations: 27.98 kB / 450 MB, free: 3.488 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009465/0.2392, allocations: 56.36 kB / 450.1 MB, free: 3.438 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.2406, allocations: 365.8 kB / 450.4 MB, free: 3.043 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.241, allocations: 0.7439 MB / 451.2 MB, free: 2.273 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.2412, allocations: 15.44 kB / 451.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of SimCode: time 1.994e-06/0.2412, allocations: 4 kB / 451.2 MB, free: 2.254 MB / 282.7 MB Notification: Performance of Templates: time 0.01554/0.2568, allocations: 2.57 MB / 453.8 MB, free: 15.68 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches