Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009464/0.0009466, allocations: 104.2 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.001031/0.001031, allocations: 201.3 kB / 16.95 MB, free: 6.152 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.82/1.82, 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.09453/0.09453, 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.00189/0.001891, allocations: 83.88 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3943, allocations: 49.38 MB / 392.4 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.004902/0.3993, allocations: 1.954 MB / 394.3 MB, free: 47.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.4017, allocations: 1.056 MB / 395.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.4019, allocations: 3.125 kB / 395.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005058/0.4024, allocations: 60.78 kB / 395.4 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000357/0.4028, allocations: 81.19 kB / 395.5 MB, free: 47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007932/0.4036, allocations: 226.7 kB / 395.7 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.4039, allocations: 172.7 kB / 395.9 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.404, allocations: 33.28 kB / 395.9 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.4042, allocations: 77.02 kB / 396 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.4044, allocations: 85.05 kB / 396.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.4044, allocations: 9.031 kB / 396.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.4046, allocations: 61.22 kB / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.4047, allocations: 54.22 kB / 396.2 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.4048, allocations: 82.17 kB / 396.3 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.4052, allocations: 238.7 kB / 396.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4052, allocations: 1.672 kB / 396.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4052, allocations: 0 / 396.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.4053, allocations: 0 / 396.5 MB, free: 46.53 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.0007138/0.406, allocations: 0.5352 MB / 397.1 MB, free: 46.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.406, allocations: 14.75 kB / 397.1 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.656e-05/0.4061, allocations: 27.25 kB / 397.1 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.4064, allocations: 290.3 kB / 397.4 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.4064, allocations: 7.938 kB / 397.4 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.4065, allocations: 12.75 kB / 397.4 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.4068, allocations: 182.2 kB / 397.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.4068, allocations: 0 / 397.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.4069, allocations: 5.156 kB / 397.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.495e-06/0.4069, allocations: 2.344 kB / 397.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.407, allocations: 35.86 kB / 397.6 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/0.4075, allocations: 479 kB / 398.1 MB, free: 45.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.4077, allocations: 131.8 kB / 398.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.662e-05/0.4078, allocations: 63.56 kB / 398.3 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.4078, allocations: 14.14 kB / 398.3 MB, free: 44.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.4081, allocations: 97.88 kB / 398.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.4081, allocations: 0 / 398.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003979/0.4085, allocations: 168.3 kB / 398.6 MB, free: 44.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.4086, allocations: 184 kB / 398.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003799/0.409, allocations: 338.4 kB / 399.1 MB, free: 44.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.409, allocations: 32.39 kB / 399.1 MB, free: 44.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.032e-05/0.4091, allocations: 129.9 kB / 399.2 MB, free: 44.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.4091, allocations: 15.25 kB / 399.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.583e-05/0.4092, allocations: 33.89 kB / 399.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.4093, allocations: 337.6 kB / 399.6 MB, free: 43.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.456e-05/0.4094, allocations: 25.55 kB / 399.6 MB, free: 43.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.4095, allocations: 95.2 kB / 399.7 MB, free: 43.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.4097, allocations: 93.7 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4097, allocations: 4 kB / 399.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00026/0.4099, allocations: 139.2 kB / 400 MB, free: 43.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.41, allocations: 5.781 kB / 400 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.41, allocations: 5.094 kB / 400 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.41, allocations: 2.406 kB / 400 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.4101, allocations: 24.73 kB / 400 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.4101, allocations: 2.25 kB / 400 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.067e-05/0.4102, allocations: 24.94 kB / 400 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.4102, allocations: 4.25 kB / 400 MB, free: 43.42 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.0001375/0.4104, allocations: 159.5 kB / 400.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.065e-05/0.4105, allocations: 64.02 kB / 400.2 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.4106, allocations: 29.05 kB / 400.3 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4106, allocations: 2.188 kB / 400.3 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4106, allocations: 1.156 kB / 400.3 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.4106, allocations: 8.875 kB / 400.3 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.4108, allocations: 250.4 kB / 400.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4108, allocations: 1.156 kB / 400.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.924e-05/0.4109, allocations: 21.11 kB / 400.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4109, allocations: 1.156 kB / 400.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.4109, allocations: 2.156 kB / 400.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.411, allocations: 1.188 kB / 400.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.411, allocations: 1.344 kB / 400.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.4113, allocations: 188.1 kB / 400.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.4114, allocations: 118.7 kB / 400.9 MB, free: 42.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.4114, allocations: 2.188 kB / 400.9 MB, free: 42.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.808e-05/0.4115, allocations: 7.453 kB / 400.9 MB, free: 42.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.4116, allocations: 12.56 kB / 400.9 MB, free: 42.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.4116, allocations: 8.578 kB / 400.9 MB, free: 42.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002628/0.4119, allocations: 245.7 kB / 401.1 MB, free: 42.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4119, allocations: 0 / 401.1 MB, free: 42.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.4122, allocations: 35.53 kB / 401.2 MB, free: 42.49 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.00109/0.4133, allocations: 427.4 kB / 401.6 MB, free: 42.15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000272/0.4135, allocations: 91.36 kB / 401.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4135, allocations: 0 / 401.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.783e-05/0.4137, allocations: 41.23 kB / 401.7 MB, free: 42.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.4141, allocations: 70.56 kB / 401.8 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006941/0.4148, allocations: 440.7 kB / 402.2 MB, free: 41.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.4151, allocations: 0.7469 MB / 403 MB, free: 40.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.4152, allocations: 34.39 kB / 403 MB, free: 40.97 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.4153, allocations: 23.92 kB / 403 MB, free: 40.96 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4153, allocations: 1.469 kB / 403 MB, free: 40.96 MB / 318.1 MB Notification: Performance of Templates: time 0.007905/0.4232, allocations: 2.89 MB / 405.9 MB, free: 39.5 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches