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.001381/0.001381, allocations: 100.4 kB / 16.02 MB, free: 6.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 199 kB / 16.95 MB, free: 6.125 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.756/1.756, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0906/0.0906, allocations: 12.58 MB / 282.7 MB, free: 15.64 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.00185/0.00185, allocations: 83.88 kB / 343 MB, free: 3.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3946, allocations: 49.38 MB / 392.4 MB, free: 49.17 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.005097/0.3997, allocations: 1.931 MB / 394.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.4018, allocations: 0.9479 MB / 395.2 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.4019, allocations: 6.188 kB / 395.3 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006728/0.4026, allocations: 140.7 kB / 395.4 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.4029, allocations: 102.1 kB / 395.5 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.4035, allocations: 172.5 kB / 395.7 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.4038, allocations: 188.7 kB / 395.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.404, allocations: 33.89 kB / 395.9 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.4041, allocations: 73.81 kB / 395.9 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.4043, allocations: 70.55 kB / 396 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.4043, allocations: 9 kB / 396 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.4045, allocations: 53.86 kB / 396.1 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.257e-05/0.4046, allocations: 43.52 kB / 396.1 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.371e-05/0.4047, allocations: 73.44 kB / 396.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.4051, allocations: 203.8 kB / 396.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4051, allocations: 0 / 396.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4051, allocations: 1.781 kB / 396.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.4051, allocations: 0 / 396.4 MB, free: 46.68 MB / 318.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.0007146/0.4058, allocations: 0.4988 MB / 396.9 MB, free: 46.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4059, allocations: 10.39 kB / 396.9 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/0.406, allocations: 17.12 kB / 396.9 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.4063, allocations: 277.7 kB / 397.2 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.4063, allocations: 2.656 kB / 397.2 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.4063, allocations: 9 kB / 397.2 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003569/0.4067, allocations: 143.9 kB / 397.3 MB, free: 45.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.4067, allocations: 1.156 kB / 397.3 MB, free: 45.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.4067, allocations: 13.02 kB / 397.4 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.4068, allocations: 0.9375 kB / 397.4 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.4069, allocations: 33.61 kB / 397.4 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005202/0.4074, allocations: 355.7 kB / 397.7 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.4077, allocations: 112.8 kB / 397.8 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.897e-05/0.4078, allocations: 46.16 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.4078, allocations: 1.594 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.408, allocations: 75.7 kB / 398 MB, free: 45.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.408, allocations: 0 / 398 MB, free: 45.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003715/0.4084, allocations: 142.7 kB / 398.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.4085, allocations: 138.5 kB / 398.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.4088, allocations: 267.9 kB / 398.5 MB, free: 44.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.4088, allocations: 27.02 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.219e-05/0.4089, allocations: 115.9 kB / 398.6 MB, free: 44.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.4089, allocations: 19.22 kB / 398.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/0.409, allocations: 32.3 kB / 398.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.727e-05/0.4091, allocations: 327.3 kB / 399 MB, free: 44.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.356e-05/0.4091, allocations: 22.77 kB / 399 MB, free: 44.22 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.655e-05/0.4092, allocations: 68 kB / 399.1 MB, free: 44.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.4094, allocations: 84.31 kB / 399.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4094, allocations: 5.188 kB / 399.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002002/0.4096, allocations: 110.8 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4096, allocations: 5.844 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4096, allocations: 1.219 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.4097, allocations: 2.344 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.169e-05/0.4097, allocations: 13.44 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.4098, allocations: 6.234 kB / 399.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.356e-05/0.4098, allocations: 15.38 kB / 399.3 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.4098, allocations: 12.56 kB / 399.4 MB, free: 43.98 MB / 318.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.0001253/0.41, allocations: 138.7 kB / 399.5 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.4101, allocations: 63.34 kB / 399.5 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.4101, allocations: 18.31 kB / 399.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4101, allocations: 1.219 kB / 399.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4102, allocations: 1.375 kB / 399.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4102, allocations: 9.016 kB / 399.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.4104, allocations: 221.8 kB / 399.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4104, allocations: 5.469 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.568e-05/0.4104, allocations: 7.625 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4104, allocations: 2.219 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4104, allocations: 5.625 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.4104, allocations: 5.031 kB / 399.8 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4104, allocations: 1.188 kB / 399.8 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.4107, allocations: 167.8 kB / 400 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.134e-05/0.4108, allocations: 111.1 kB / 400.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.4108, allocations: 1.281 kB / 400.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.005e-05/0.4109, allocations: 11.42 kB / 400.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.4109, allocations: 3 kB / 400.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.411, allocations: 7.719 kB / 400.1 MB, free: 43.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.4112, allocations: 194.6 kB / 400.3 MB, free: 43.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4112, allocations: 0 / 400.3 MB, free: 43.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.4115, allocations: 30.05 kB / 400.3 MB, free: 43.12 MB / 318.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.001107/0.4126, allocations: 417.8 kB / 400.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002439/0.4128, allocations: 70.91 kB / 400.8 MB, free: 42.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4128, allocations: 1.125 kB / 400.8 MB, free: 42.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.668e-05/0.4129, allocations: 26.05 kB / 400.8 MB, free: 42.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.4134, allocations: 58.78 kB / 400.9 MB, free: 42.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006525/0.414, allocations: 354.4 kB / 401.2 MB, free: 42.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.4143, allocations: 0.7261 MB / 402 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.62e-05/0.4144, allocations: 29.2 kB / 402 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.4144, allocations: 25.22 kB / 402 MB, free: 41.68 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.4144, allocations: 0 / 402 MB, free: 41.68 MB / 318.1 MB Notification: Performance of Templates: time 0.007933/0.4224, allocations: 2.368 MB / 404.4 MB, free: 40.46 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (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) 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