Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 103.8 kB / 16.02 MB, free: 6.328 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.001661/0.001661, allocations: 200.7 kB / 16.95 MB, free: 6.145 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.79/1.79, allocations: 205.1 MB / 222.8 MB, free: 12.44 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.08939/0.08939, allocations: 12.58 MB / 282.7 MB, free: 15.65 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.002176/0.002176, allocations: 91.86 kB / 343 MB, free: 3.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3939, allocations: 49.37 MB / 392.4 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003886/0.3979, allocations: 1.942 MB / 394.3 MB, free: 47.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.3999, allocations: 0.9606 MB / 395.3 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.4001, allocations: 6.344 kB / 395.3 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007321/0.4009, allocations: 145.6 kB / 395.4 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.4012, allocations: 101.5 kB / 395.5 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.4018, allocations: 164.4 kB / 395.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.4021, allocations: 181.1 kB / 395.9 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.4022, allocations: 34.84 kB / 395.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.4024, allocations: 72.11 kB / 396 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.4025, allocations: 73.19 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.4025, allocations: 8.812 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.4027, allocations: 63.42 kB / 396.1 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-05/0.4028, allocations: 43.09 kB / 396.1 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.604e-05/0.4029, allocations: 65.06 kB / 396.2 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.4032, allocations: 204.2 kB / 396.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4032, allocations: 0 / 396.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4032, allocations: 1.406 kB / 396.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.4033, allocations: 0 / 396.4 MB, free: 46.61 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.0007581/0.404, allocations: 0.5075 MB / 396.9 MB, free: 46.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.4041, allocations: 9.812 kB / 396.9 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.665e-05/0.4042, allocations: 25.72 kB / 396.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.4044, allocations: 265.6 kB / 397.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.4045, allocations: 3.375 kB / 397.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.4045, allocations: 12.47 kB / 397.2 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.4048, allocations: 141.2 kB / 397.4 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.4048, allocations: 3.938 kB / 397.4 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.4049, allocations: 9.656 kB / 397.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4049, allocations: 1.781 kB / 397.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.498e-05/0.405, allocations: 32.03 kB / 397.4 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.4054, allocations: 364.8 kB / 397.8 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.4056, allocations: 112 kB / 397.9 MB, free: 45.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.4057, allocations: 42.75 kB / 397.9 MB, free: 45.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.4057, allocations: 5.219 kB / 397.9 MB, free: 45.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.4059, allocations: 79.83 kB / 398 MB, free: 45.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.4059, allocations: 0 / 398 MB, free: 45.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003938/0.4063, allocations: 133.7 kB / 398.1 MB, free: 45.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.4064, allocations: 143.3 kB / 398.3 MB, free: 44.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.4067, allocations: 259.9 kB / 398.5 MB, free: 44.67 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.4067, allocations: 26.8 kB / 398.5 MB, free: 44.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.23e-05/0.4068, allocations: 120.3 kB / 398.7 MB, free: 44.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.4069, allocations: 15.06 kB / 398.7 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.4069, allocations: 32.39 kB / 398.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.435e-05/0.407, allocations: 327.1 kB / 399 MB, free: 44.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.158e-05/0.4071, allocations: 26.23 kB / 399.1 MB, free: 44.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.272e-05/0.4072, allocations: 72.28 kB / 399.1 MB, free: 44.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.4073, allocations: 76.75 kB / 399.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4073, allocations: 1.219 kB / 399.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001938/0.4075, allocations: 115.1 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.4076, allocations: 4.594 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4076, allocations: 2.188 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4076, allocations: 1.188 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.4077, allocations: 10.25 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.4077, allocations: 6.625 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.398e-05/0.4078, allocations: 23.64 kB / 399.4 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.4078, allocations: 4.5 kB / 399.4 MB, free: 43.91 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,shiftSample1.y,shiftSample1.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.0001362/0.408, allocations: 145.7 kB / 399.5 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.859e-05/0.4081, allocations: 56.02 kB / 399.6 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/0.4081, allocations: 22.17 kB / 399.6 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4081, allocations: 1.281 kB / 399.6 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4081, allocations: 64 / 399.6 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.4082, allocations: 9.219 kB / 399.6 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.4083, allocations: 226.4 kB / 399.8 MB, free: 43.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.4083, allocations: 9 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-05/0.4084, allocations: 12.41 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4084, allocations: 1.094 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.4084, allocations: 2.219 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.4084, allocations: 1.062 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4084, allocations: 1.125 kB / 399.8 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.4087, allocations: 163.9 kB / 400 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.306e-05/0.4088, allocations: 106.2 kB / 400.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.4088, allocations: 2.156 kB / 400.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.021e-05/0.4089, allocations: 11.23 kB / 400.1 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.4089, allocations: 3.25 kB / 400.1 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.4089, allocations: 7.219 kB / 400.1 MB, free: 43.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.4092, allocations: 194.6 kB / 400.3 MB, free: 43.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4092, allocations: 4 kB / 400.3 MB, free: 43.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002815/0.4095, allocations: 26.69 kB / 400.3 MB, free: 43.05 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,shiftSample1.y,sample.y,shiftSample1.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.001184/0.4107, allocations: 411.5 kB / 400.8 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003046/0.411, allocations: 74.38 kB / 400.8 MB, free: 42.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.411, allocations: 5.062 kB / 400.8 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.866e-05/0.4111, allocations: 23.28 kB / 400.9 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.4116, allocations: 82.23 kB / 400.9 MB, free: 42.62 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007596/0.4124, allocations: 342.6 kB / 401.3 MB, free: 42.35 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4127, allocations: 0.73 MB / 402 MB, free: 41.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.289e-05/0.4128, allocations: 26.5 kB / 402 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.4129, allocations: 21.7 kB / 402 MB, free: 41.61 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4129, allocations: 0 / 402 MB, free: 41.61 MB / 318.1 MB Notification: Performance of Templates: time 0.007587/0.4205, allocations: 2.415 MB / 404.5 MB, free: 40.36 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches