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.0007183/0.0007183, allocations: 101.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000734/0.000734, allocations: 184.8 kB / 16.97 MB, free: 6.875 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.21/1.21, allocations: 205.4 MB / 223.1 MB, free: 5.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.05903/0.05903, allocations: 12.61 MB / 284 MB, free: 8.812 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.0006195/0.0006196, allocations: 27.97 kB / 345.2 MB, free: 20.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07396/0.07459, allocations: 50.39 MB / 395.6 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.001969/0.0766, allocations: 1.576 MB / 397.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.07804, allocations: 1.01 MB / 398.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.07816, allocations: 0 / 398.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.07845, allocations: 63.8 kB / 398.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.07867, allocations: 79.72 kB / 398.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.0793, allocations: 207.6 kB / 398.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.07952, allocations: 151.6 kB / 398.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.07963, allocations: 29.53 kB / 398.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.07974, allocations: 67.64 kB / 398.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.07986, allocations: 71.69 kB / 398.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.07989, allocations: 0 / 398.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.08004, allocations: 59.91 kB / 398.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.429e-05/0.08012, allocations: 47.81 kB / 398.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.15e-05/0.08021, allocations: 97.12 kB / 399 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.08046, allocations: 215.5 kB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.08047, allocations: 4 kB / 399.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08048, allocations: 0 / 399.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.08048, allocations: 0 / 399.2 MB, free: 14.76 MB / 302.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.0005658/0.08105, allocations: 0.5039 MB / 399.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.08109, allocations: 8.031 kB / 399.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.08115, allocations: 24.66 kB / 399.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.08144, allocations: 279.6 kB / 400 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.08147, allocations: 4.375 kB / 400 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.08149, allocations: 12.12 kB / 400 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.08178, allocations: 159.6 kB / 400.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.0818, allocations: 3.938 kB / 400.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.08182, allocations: 7.938 kB / 400.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.08183, allocations: 0 / 400.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.842e-05/0.08193, allocations: 35.98 kB / 400.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004307/0.08237, allocations: 390.2 kB / 400.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.0826, allocations: 115.9 kB / 400.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.846e-05/0.08269, allocations: 50.56 kB / 400.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.08272, allocations: 8.062 kB / 400.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.08289, allocations: 75.31 kB / 400.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.0829, allocations: 0 / 400.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003204/0.08323, allocations: 153.4 kB / 401 MB, free: 12.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.08331, allocations: 158.2 kB / 401.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.0836, allocations: 334.5 kB / 401.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.08363, allocations: 25.7 kB / 401.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.997e-05/0.0837, allocations: 128.1 kB / 401.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.08373, allocations: 15.81 kB / 401.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.08376, allocations: 21.7 kB / 401.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.08387, allocations: 335 kB / 402 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.363e-05/0.08394, allocations: 27.92 kB / 402 MB, free: 11.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.205e-05/0.08404, allocations: 86.84 kB / 402.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.08419, allocations: 84.22 kB / 402.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.0842, allocations: 0 / 402.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001993/0.0844, allocations: 125.3 kB / 402.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.08443, allocations: 9.25 kB / 402.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.08443, allocations: 0 / 402.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.08445, allocations: 12.16 kB / 402.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.054e-05/0.08455, allocations: 12 kB / 402.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.08457, allocations: 7.984 kB / 402.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.064e-05/0.08465, allocations: 15.78 kB / 402.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.08466, allocations: 4.312 kB / 402.4 MB, free: 11.23 MB / 302.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.0001089/0.08478, allocations: 157.8 kB / 402.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/0.08486, allocations: 65.41 kB / 402.6 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.539e-05/0.08491, allocations: 29.77 kB / 402.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.08492, allocations: 4 kB / 402.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.08493, allocations: 0 / 402.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.08494, allocations: 3.938 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.08511, allocations: 237.5 kB / 402.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.08512, allocations: 0 / 402.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.847e-05/0.08518, allocations: 19.92 kB / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.08519, allocations: 0 / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.0852, allocations: 0 / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-06/0.08521, allocations: 4 kB / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.08522, allocations: 0 / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.08545, allocations: 174.3 kB / 403.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.295e-05/0.08555, allocations: 112.9 kB / 403.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.08558, allocations: 0 / 403.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.872e-05/0.08565, allocations: 11.98 kB / 403.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/0.0857, allocations: 4 kB / 403.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.08573, allocations: 15.92 kB / 403.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.08593, allocations: 241.9 kB / 403.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08594, allocations: 0 / 403.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.08619, allocations: 39.91 kB / 403.5 MB, free: 10.03 MB / 302.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.0008272/0.08702, allocations: 427.7 kB / 403.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.08722, allocations: 67.91 kB / 404 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.08723, allocations: 4.25 kB / 404 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.223e-05/0.08731, allocations: 31.92 kB / 404 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.08769, allocations: 57.14 kB / 404.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005199/0.08822, allocations: 408.5 kB / 404.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.08851, allocations: 0.74 MB / 405.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.428e-05/0.0886, allocations: 33.52 kB / 405.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.08865, allocations: 19.42 kB / 405.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.08866, allocations: 0 / 405.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of Templates: time 0.005339/0.094, allocations: 2.666 MB / 407.9 MB, free: 5.527 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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