Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 101.1 kB / 16.03 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.001209/0.001209, allocations: 195.9 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.634/1.634, allocations: 205.1 MB / 222.8 MB, free: 12.45 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.09281/0.09281, 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.002068/0.002069, allocations: 88.64 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.392, allocations: 49.38 MB / 392.4 MB, free: 49.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.004479/0.3965, allocations: 1.953 MB / 394.3 MB, free: 47.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.3996, allocations: 0.9753 MB / 395.3 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.3998, allocations: 3.156 kB / 395.3 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.4008, allocations: 136.8 kB / 395.4 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004132/0.4012, allocations: 101.7 kB / 395.5 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006546/0.4019, allocations: 172.6 kB / 395.7 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.4024, allocations: 190.8 kB / 395.9 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.4026, allocations: 32.05 kB / 395.9 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.4027, allocations: 77.42 kB / 396 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.4029, allocations: 85.94 kB / 396.1 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.4029, allocations: 7.062 kB / 396.1 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.4031, allocations: 50.36 kB / 396.1 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.4032, allocations: 56.12 kB / 396.2 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.4033, allocations: 75.3 kB / 396.3 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.4038, allocations: 207.6 kB / 396.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4038, allocations: 0 / 396.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4038, allocations: 0 / 396.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.4038, allocations: 0 / 396.5 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009284/0.4047, allocations: 0.5135 MB / 397 MB, free: 46.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.4048, allocations: 9.25 kB / 397 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.4049, allocations: 17.78 kB / 397 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.4052, allocations: 270.8 kB / 397.3 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.4052, allocations: 2.438 kB / 397.3 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.4052, allocations: 18.05 kB / 397.3 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.4056, allocations: 160.1 kB / 397.4 MB, free: 45.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.4056, allocations: 3.938 kB / 397.4 MB, free: 45.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.4057, allocations: 9.078 kB / 397.5 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.4057, allocations: 6.156 kB / 397.5 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.4058, allocations: 31.14 kB / 397.5 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.4063, allocations: 459 kB / 397.9 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.4066, allocations: 128.2 kB / 398.1 MB, free: 45.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.4067, allocations: 63.83 kB / 398.1 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.4068, allocations: 1.5 kB / 398.1 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.407, allocations: 100.1 kB / 398.2 MB, free: 44.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.407, allocations: 0 / 398.2 MB, free: 44.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003991/0.4074, allocations: 150.8 kB / 398.4 MB, free: 44.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.4075, allocations: 166.5 kB / 398.5 MB, free: 44.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.4078, allocations: 263.4 kB / 398.8 MB, free: 44.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.4078, allocations: 28.55 kB / 398.8 MB, free: 44.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.408, allocations: 123.1 kB / 398.9 MB, free: 44.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.408, allocations: 15.72 kB / 399 MB, free: 44.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.408, allocations: 37.48 kB / 399 MB, free: 44.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.578e-05/0.4081, allocations: 327.4 kB / 399.3 MB, free: 43.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.781e-05/0.4082, allocations: 24.55 kB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.538e-05/0.4083, allocations: 82.88 kB / 399.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.4085, allocations: 89.33 kB / 399.5 MB, free: 43.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.4085, allocations: 5.156 kB / 399.5 MB, free: 43.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002254/0.4087, allocations: 125.4 kB / 399.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.4087, allocations: 5.719 kB / 399.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4087, allocations: 1.125 kB / 399.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4088, allocations: 2.406 kB / 399.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.4089, allocations: 11.03 kB / 399.7 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.4089, allocations: 10.34 kB / 399.7 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.286e-05/0.409, allocations: 20.5 kB / 399.7 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.409, allocations: 12.84 kB / 399.7 MB, free: 43.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample.y,hold.y,hold.u,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001246/0.4091, allocations: 143 kB / 399.8 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.655e-05/0.4092, allocations: 67.44 kB / 399.9 MB, free: 43.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.374e-05/0.4093, allocations: 21.72 kB / 399.9 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.4093, allocations: 2.219 kB / 399.9 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4093, allocations: 5.141 kB / 399.9 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4093, allocations: 5.062 kB / 399.9 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.4095, allocations: 237.2 kB / 400.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4095, allocations: 5.094 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.855e-05/0.4096, allocations: 8.734 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.4096, allocations: 1.219 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.4096, allocations: 2.312 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.4096, allocations: 1.125 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4096, allocations: 1.281 kB / 400.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.4099, allocations: 175.9 kB / 400.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.551e-05/0.41, allocations: 104 kB / 400.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.41, allocations: 5.156 kB / 400.5 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.258e-05/0.4101, allocations: 11.39 kB / 400.5 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.4101, allocations: 7.438 kB / 400.5 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.4102, allocations: 13.23 kB / 400.5 MB, free: 42.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002066/0.4104, allocations: 190.6 kB / 400.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4104, allocations: 5.125 kB / 400.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.4107, allocations: 43.11 kB / 400.7 MB, free: 42.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (11): * Single equations (assignments): 9 * 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.001254/0.4119, allocations: 420.7 kB / 401.1 MB, free: 42.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002966/0.4122, allocations: 77.22 kB / 401.2 MB, free: 42.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4123, allocations: 3.938 kB / 401.2 MB, free: 42.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.4124, allocations: 37.73 kB / 401.3 MB, free: 42.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.4129, allocations: 68.25 kB / 401.3 MB, free: 42.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000684/0.4136, allocations: 369 kB / 401.7 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.414, allocations: 0.7399 MB / 402.4 MB, free: 41.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.4141, allocations: 22.8 kB / 402.4 MB, free: 41.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.259e-05/0.4142, allocations: 23.47 kB / 402.5 MB, free: 41.3 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4142, allocations: 0 / 402.5 MB, free: 41.3 MB / 318.1 MB Notification: Performance of Templates: time 0.00909/0.4233, allocations: 2.486 MB / 405 MB, free: 40.02 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches