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.00205/0.00205, allocations: 102.7 kB / 16.31 MB, free: 5.879 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.001973/0.001973, allocations: 186.5 kB / 17.24 MB, free: 5.539 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.617/1.617, allocations: 205.1 MB / 223.1 MB, free: 12.26 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.08624/0.08624, allocations: 12.6 MB / 283.1 MB, free: 15.45 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.003521/0.003522, allocations: 86.84 kB / 343.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3998, allocations: 49.39 MB / 392.9 MB, free: 49.19 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.003924/0.4038, allocations: 1.89 MB / 394.8 MB, free: 47.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.4056, allocations: 0.9882 MB / 395.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.4057, allocations: 2.25 kB / 395.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000699/0.4065, allocations: 152.9 kB / 395.9 MB, free: 47.16 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.4068, allocations: 111.2 kB / 396 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.4074, allocations: 182.6 kB / 396.2 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.4076, allocations: 188.4 kB / 396.4 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.4077, allocations: 37.56 kB / 396.4 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.4079, allocations: 81.56 kB / 396.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.408, allocations: 75.12 kB / 396.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.408, allocations: 10.53 kB / 396.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.4082, allocations: 53.58 kB / 396.6 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.4083, allocations: 46.45 kB / 396.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.19e-05/0.4084, allocations: 73.67 kB / 396.8 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.4087, allocations: 210 kB / 397 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4087, allocations: 0 / 397 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4087, allocations: 4 kB / 397 MB, free: 46.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.4087, allocations: 1.125 kB / 397 MB, free: 46.54 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.000842/0.4096, allocations: 0.5104 MB / 397.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4096, allocations: 8.781 kB / 397.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.067e-05/0.4097, allocations: 18.5 kB / 397.5 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.41, allocations: 266.7 kB / 397.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.4101, allocations: 3.688 kB / 397.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.4101, allocations: 13.25 kB / 397.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.4105, allocations: 164.5 kB / 397.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.4105, allocations: 0 / 397.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.4105, allocations: 6.125 kB / 397.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4105, allocations: 1.5 kB / 397.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.4106, allocations: 47.31 kB / 398 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005038/0.4111, allocations: 451.9 kB / 398.4 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.4114, allocations: 130.9 kB / 398.6 MB, free: 44.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/0.4115, allocations: 59.3 kB / 398.6 MB, free: 44.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.4115, allocations: 10.3 kB / 398.6 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001669/0.4117, allocations: 91.78 kB / 398.7 MB, free: 44.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.304e-06/0.4117, allocations: 0 / 398.7 MB, free: 44.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003967/0.4121, allocations: 160 kB / 398.9 MB, free: 44.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/0.4122, allocations: 160.5 kB / 399 MB, free: 44.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.4125, allocations: 264.7 kB / 399.3 MB, free: 44.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.4125, allocations: 32.12 kB / 399.3 MB, free: 44.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.6e-05/0.4125, allocations: 123.4 kB / 399.4 MB, free: 44.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.4126, allocations: 15.44 kB / 399.5 MB, free: 44.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.4126, allocations: 33.48 kB / 399.5 MB, free: 44.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.729e-05/0.4127, allocations: 335.5 kB / 399.8 MB, free: 43.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.449e-05/0.4128, allocations: 20.8 kB / 399.8 MB, free: 43.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.899e-05/0.4129, allocations: 77.27 kB / 399.9 MB, free: 43.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.413, allocations: 90.39 kB / 400 MB, free: 43.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4131, allocations: 4 kB / 400 MB, free: 43.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002174/0.4133, allocations: 130.6 kB / 400.1 MB, free: 43.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4133, allocations: 12.98 kB / 400.1 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.4133, allocations: 2.25 kB / 400.1 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.4133, allocations: 1.188 kB / 400.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.613e-05/0.4134, allocations: 10.75 kB / 400.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.4135, allocations: 2.562 kB / 400.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.843e-05/0.4135, allocations: 28.3 kB / 400.2 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.4136, allocations: 4.812 kB / 400.2 MB, free: 43.57 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.0001082/0.4137, allocations: 143.2 kB / 400.3 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.302e-05/0.4138, allocations: 64.17 kB / 400.4 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.4138, allocations: 24.23 kB / 400.4 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4138, allocations: 2.344 kB / 400.4 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4138, allocations: 5.125 kB / 400.4 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.4139, allocations: 5.188 kB / 400.4 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.414, allocations: 236.2 kB / 400.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.4141, allocations: 1 kB / 400.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.598e-05/0.4141, allocations: 9.312 kB / 400.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4141, allocations: 1.062 kB / 400.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.4141, allocations: 7.234 kB / 400.7 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4141, allocations: 5.188 kB / 400.7 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4141, allocations: 1.125 kB / 400.7 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.4144, allocations: 168.5 kB / 400.9 MB, free: 42.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.4144, allocations: 106.6 kB / 401 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.4145, allocations: 9.5 kB / 401 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.092e-05/0.4146, allocations: 7.297 kB / 401 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.4146, allocations: 8.406 kB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.4146, allocations: 12.41 kB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.4148, allocations: 195.3 kB / 401.2 MB, free: 42.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4148, allocations: 0 / 401.2 MB, free: 42.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.4151, allocations: 39.12 kB / 401.2 MB, free: 42.69 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.0009267/0.416, allocations: 420.5 kB / 401.6 MB, free: 42.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.4163, allocations: 76.66 kB / 401.7 MB, free: 42.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4163, allocations: 0 / 401.7 MB, free: 42.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.555e-05/0.4164, allocations: 34.2 kB / 401.7 MB, free: 42.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.4168, allocations: 73.08 kB / 401.8 MB, free: 42.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005308/0.4174, allocations: 330.5 kB / 402.1 MB, free: 42.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.4176, allocations: 0.7327 MB / 402.9 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.14e-05/0.4176, allocations: 30.95 kB / 402.9 MB, free: 41.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.4177, allocations: 22.03 kB / 402.9 MB, free: 41.26 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4177, allocations: 0 / 402.9 MB, free: 41.26 MB / 318.1 MB Notification: Performance of Templates: time 0.006808/0.4245, allocations: 2.519 MB / 405.4 MB, free: 39.98 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches