Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009914/0.0009915, allocations: 105.1 kB / 16.02 MB, free: 6.305 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.001081/0.001081, allocations: 195.8 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.754/1.754, 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.105/0.105, allocations: 12.59 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.001951/0.001951, allocations: 91.86 kB / 343 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4032, allocations: 49.38 MB / 392.4 MB, free: 49.4 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.004833/0.4081, allocations: 1.932 MB / 394.3 MB, free: 48.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.4105, allocations: 1.026 MB / 395.3 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.4107, allocations: 2.312 kB / 395.3 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000432/0.4112, allocations: 65.27 kB / 395.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003442/0.4115, allocations: 76.81 kB / 395.5 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007878/0.4123, allocations: 211.2 kB / 395.7 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003179/0.4126, allocations: 169 kB / 395.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.4128, allocations: 32.72 kB / 395.9 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.4129, allocations: 75.06 kB / 395.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.4131, allocations: 81.55 kB / 396 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.4131, allocations: 7.125 kB / 396 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.4133, allocations: 60.61 kB / 396.1 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.4134, allocations: 58.64 kB / 396.1 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.4135, allocations: 78.64 kB / 396.2 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.414, allocations: 229.6 kB / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.414, allocations: 0.7969 kB / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.414, allocations: 0 / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.414, allocations: 0 / 396.4 MB, free: 46.86 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.0007148/0.4147, allocations: 0.5295 MB / 397 MB, free: 46.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4148, allocations: 8.938 kB / 397 MB, free: 46.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.4149, allocations: 32.53 kB / 397 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.4152, allocations: 280 kB / 397.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.4152, allocations: 7.938 kB / 397.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.4152, allocations: 12.62 kB / 397.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.4156, allocations: 156.5 kB / 397.5 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4156, allocations: 4 kB / 397.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.4156, allocations: 1.156 kB / 397.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4156, allocations: 6.25 kB / 397.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.4157, allocations: 37.69 kB / 397.5 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.4162, allocations: 384.4 kB / 397.9 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.4164, allocations: 115.8 kB / 398 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.4165, allocations: 47.09 kB / 398 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.4166, allocations: 6.375 kB / 398 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.4168, allocations: 81.03 kB / 398.1 MB, free: 45.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.4168, allocations: 0 / 398.1 MB, free: 45.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004016/0.4172, allocations: 151.6 kB / 398.3 MB, free: 45.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.4173, allocations: 164.6 kB / 398.4 MB, free: 44.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004111/0.4177, allocations: 321.9 kB / 398.8 MB, free: 44.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.4178, allocations: 32.05 kB / 398.8 MB, free: 44.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.403e-05/0.4179, allocations: 129.6 kB / 398.9 MB, free: 44.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.4179, allocations: 19.22 kB / 398.9 MB, free: 44.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.529e-05/0.418, allocations: 27.95 kB / 399 MB, free: 44.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4181, allocations: 337.4 kB / 399.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.652e-05/0.4181, allocations: 20.05 kB / 399.3 MB, free: 44.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.4183, allocations: 92.22 kB / 399.4 MB, free: 44.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.4184, allocations: 84.78 kB / 399.5 MB, free: 44.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.4184, allocations: 1.312 kB / 399.5 MB, free: 44.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002498/0.4187, allocations: 127 kB / 399.6 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.4187, allocations: 5.531 kB / 399.6 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.4187, allocations: 1.406 kB / 399.6 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.4187, allocations: 2.156 kB / 399.6 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.4189, allocations: 17.92 kB / 399.6 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.4189, allocations: 6.188 kB / 399.6 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.546e-05/0.419, allocations: 16.39 kB / 399.7 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.419, allocations: 7.812 kB / 399.7 MB, free: 43.99 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,table.y,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.0001389/0.4191, allocations: 149.9 kB / 399.8 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.4192, allocations: 65.69 kB / 399.9 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.806e-05/0.4193, allocations: 32.11 kB / 399.9 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4193, allocations: 1.562 kB / 399.9 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4193, allocations: 1.094 kB / 399.9 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4193, allocations: 9.281 kB / 399.9 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.4195, allocations: 240.2 kB / 400.1 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.4195, allocations: 0.9688 kB / 400.1 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.785e-05/0.4196, allocations: 17.17 kB / 400.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.4196, allocations: 1.375 kB / 400.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.4197, allocations: 10.19 kB / 400.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.4197, allocations: 0.9375 kB / 400.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4197, allocations: 1.094 kB / 400.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.42, allocations: 169.3 kB / 400.3 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.4201, allocations: 116.7 kB / 400.5 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.4202, allocations: 2.219 kB / 400.5 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.239e-05/0.4202, allocations: 6.344 kB / 400.5 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.862e-05/0.4203, allocations: 8.328 kB / 400.5 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.4203, allocations: 8.156 kB / 400.5 MB, free: 43.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.4206, allocations: 241.1 kB / 400.7 MB, free: 43.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4206, allocations: 4 kB / 400.7 MB, free: 43.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.4209, allocations: 38.08 kB / 400.8 MB, free: 43.08 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,table.y,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.001137/0.4221, allocations: 421.8 kB / 401.2 MB, free: 42.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002216/0.4223, allocations: 73.61 kB / 401.2 MB, free: 42.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4223, allocations: 0 / 401.2 MB, free: 42.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.628e-05/0.4224, allocations: 28.8 kB / 401.3 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.4229, allocations: 71.14 kB / 401.3 MB, free: 42.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006959/0.4236, allocations: 417.6 kB / 401.7 MB, free: 42.35 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4239, allocations: 0.7404 MB / 402.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.815e-05/0.424, allocations: 30.19 kB / 402.5 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.424, allocations: 27.17 kB / 402.5 MB, free: 41.59 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.424, allocations: 0 / 402.5 MB, free: 41.59 MB / 318.1 MB Notification: Performance of Templates: time 0.008033/0.4321, allocations: 2.78 MB / 405.3 MB, free: 40.18 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches