Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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/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 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(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007167/0.0007167, allocations: 97.02 kB / 16.06 MB, free: 40 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.0007447/0.0007449, allocations: 182.7 kB / 16.96 MB, free: 6.895 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.225/1.225, allocations: 205.4 MB / 223.2 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06302/0.06302, allocations: 12.6 MB / 284 MB, free: 8.578 MB / 238.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: Modelica_Synchronous 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.0006439/0.0006439, allocations: 16.84 kB / 345.2 MB, free: 20.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.074/0.07465, allocations: 50.38 MB / 395.5 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.001984/0.07667, allocations: 1.591 MB / 397.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.07803, allocations: 0.9248 MB / 398.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.07815, allocations: 7.938 kB / 398.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004835/0.07864, allocations: 135.7 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.07891, allocations: 103.7 kB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.07938, allocations: 167.6 kB / 398.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.07963, allocations: 175.5 kB / 398.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.07975, allocations: 33.83 kB / 398.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.07988, allocations: 59.7 kB / 398.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.07999, allocations: 63.64 kB / 398.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.08002, allocations: 4 kB / 398.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.08016, allocations: 47.97 kB / 398.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.887e-05/0.08023, allocations: 31.84 kB / 398.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.579e-05/0.08031, allocations: 93.19 kB / 399 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.08054, allocations: 191.3 kB / 399.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.08055, allocations: 4 kB / 399.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.08056, allocations: 0 / 399.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.08057, allocations: 4 kB / 399.2 MB, free: 14.78 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.000603/0.08118, allocations: 484.3 kB / 399.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.08122, allocations: 12.03 kB / 399.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.438e-05/0.08127, allocations: 16.75 kB / 399.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.08155, allocations: 262.8 kB / 399.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.08157, allocations: 8.375 kB / 399.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.0816, allocations: 8.125 kB / 399.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.08188, allocations: 154.7 kB / 400.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.08189, allocations: 0 / 400.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.08191, allocations: 3.984 kB / 400.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.08192, allocations: 4 kB / 400.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.838e-05/0.08202, allocations: 35.91 kB / 400.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004352/0.08246, allocations: 362.4 kB / 400.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.08269, allocations: 107.9 kB / 400.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.08278, allocations: 46.5 kB / 400.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.08281, allocations: 4 kB / 400.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001393/0.08296, allocations: 75.39 kB / 400.7 MB, free: 13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.08297, allocations: 0 / 400.7 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003074/0.08328, allocations: 149.2 kB / 400.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.08336, allocations: 132.5 kB / 401 MB, free: 12.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.08364, allocations: 265 kB / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.08366, allocations: 29.64 kB / 401.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.654e-05/0.08374, allocations: 120.3 kB / 401.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.08377, allocations: 23.75 kB / 401.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.0838, allocations: 21.7 kB / 401.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.351e-05/0.0839, allocations: 330.8 kB / 401.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.08396, allocations: 23.98 kB / 401.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.612e-05/0.08405, allocations: 66 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.08417, allocations: 80.25 kB / 401.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.08418, allocations: 0 / 401.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001833/0.08437, allocations: 113.4 kB / 402 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.08439, allocations: 8.125 kB / 402 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.08441, allocations: 4 kB / 402 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.08442, allocations: 0 / 402 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-05/0.0845, allocations: 19.94 kB / 402.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.08451, allocations: 0 / 402.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.718e-05/0.08458, allocations: 15.83 kB / 402.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.0846, allocations: 4 kB / 402.1 MB, free: 11.51 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,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.08471, allocations: 137.8 kB / 402.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.235e-05/0.08478, allocations: 65.45 kB / 402.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.08484, allocations: 25.7 kB / 402.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.08484, allocations: 0 / 402.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.08485, allocations: 4 kB / 402.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.08486, allocations: 3.938 kB / 402.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.08507, allocations: 229.9 kB / 402.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.08508, allocations: 0 / 402.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-05/0.08511, allocations: 8 kB / 402.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.08512, allocations: 4 kB / 402.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.08513, allocations: 0 / 402.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.08514, allocations: 8.062 kB / 402.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.08514, allocations: 3.938 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.08536, allocations: 158.4 kB / 402.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.812e-05/0.08545, allocations: 112.8 kB / 402.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.08548, allocations: 3.984 kB / 402.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.831e-05/0.08554, allocations: 12 kB / 402.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.08558, allocations: 4 kB / 402.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.0856, allocations: 11.92 kB / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.08577, allocations: 188.6 kB / 403 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08578, allocations: 7.938 kB / 403 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.08602, allocations: 27.98 kB / 403.1 MB, free: 10.41 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,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 (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.0007961/0.08682, allocations: 411.7 kB / 403.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.08701, allocations: 71.91 kB / 403.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.08702, allocations: 4 kB / 403.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.119e-05/0.08709, allocations: 27.92 kB / 403.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.08745, allocations: 57.02 kB / 403.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004665/0.08793, allocations: 352.2 kB / 404 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.0882, allocations: 0.7322 MB / 404.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.28e-05/0.08827, allocations: 17.55 kB / 404.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.756e-05/0.08831, allocations: 19.42 kB / 404.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08832, allocations: 0 / 404.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of Templates: time 0.004701/0.09302, allocations: 2.268 MB / 407 MB, free: 6.395 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches