Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 107.9 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.002103/0.002103, allocations: 191.2 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.781/1.781, 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.1209/0.1209, allocations: 12.59 MB / 283.1 MB, free: 15.46 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.001787/0.001787, allocations: 87.88 kB / 343.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3193, allocations: 49.38 MB / 392.9 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.004899/0.3242, allocations: 1.943 MB / 394.8 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.3271, allocations: 1.134 MB / 396 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.3274, allocations: 3.312 kB / 396 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004249/0.3278, allocations: 68.42 kB / 396 MB, free: 47.05 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.0004454/0.3282, allocations: 93.19 kB / 396.1 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.3293, allocations: 278.9 kB / 396.4 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.3297, allocations: 211.9 kB / 396.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.3299, allocations: 52.19 kB / 396.6 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.3301, allocations: 90.06 kB / 396.7 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.3304, allocations: 100.1 kB / 396.8 MB, free: 46.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.953e-05/0.3304, allocations: 12.81 kB / 396.8 MB, free: 46.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.3307, allocations: 65.12 kB / 396.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.3309, allocations: 66.41 kB / 397 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.331, allocations: 104.2 kB / 397.1 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.3317, allocations: 276.3 kB / 397.3 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3317, allocations: 5 kB / 397.4 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3317, allocations: 0 / 397.4 MB, free: 46.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3317, allocations: 0 / 397.4 MB, free: 46.3 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001236/0.3329, allocations: 0.5839 MB / 397.9 MB, free: 45.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.333, allocations: 8.969 kB / 397.9 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.3331, allocations: 26.88 kB / 398 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.3334, allocations: 304.8 kB / 398.3 MB, free: 45.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3335, allocations: 15.17 kB / 398.3 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.3335, allocations: 20.48 kB / 398.3 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005991/0.3341, allocations: 328.3 kB / 398.6 MB, free: 45.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3341, allocations: 1.125 kB / 398.6 MB, free: 45.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.3342, allocations: 9.141 kB / 398.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3342, allocations: 2.312 kB / 398.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.3344, allocations: 68.44 kB / 398.7 MB, free: 45.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000543/0.3349, allocations: 413.1 kB / 399.1 MB, free: 44.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.3353, allocations: 191 kB / 399.3 MB, free: 44.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.3355, allocations: 100.4 kB / 399.4 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.3355, allocations: 11.38 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.3358, allocations: 80.47 kB / 399.5 MB, free: 44.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.824e-06/0.3358, allocations: 4.938 kB / 399.5 MB, free: 44.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006286/0.3364, allocations: 250.6 kB / 399.7 MB, free: 44.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.3365, allocations: 173.2 kB / 399.9 MB, free: 44.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.337, allocations: 345.3 kB / 400.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.337, allocations: 31.17 kB / 400.3 MB, free: 43.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.3371, allocations: 135.5 kB / 400.4 MB, free: 43.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.3372, allocations: 34.19 kB / 400.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.89e-05/0.3372, allocations: 49.69 kB / 400.5 MB, free: 43.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3373, allocations: 342 kB / 400.8 MB, free: 43.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.3375, allocations: 47.47 kB / 400.9 MB, free: 43.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.3376, allocations: 187.4 kB / 401 MB, free: 43.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.3379, allocations: 213.7 kB / 401.3 MB, free: 42.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3379, allocations: 1.406 kB / 401.3 MB, free: 42.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004011/0.3383, allocations: 235.5 kB / 401.5 MB, free: 42.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3383, allocations: 11.02 kB / 401.5 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.3383, allocations: 4.344 kB / 401.5 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.3384, allocations: 5.625 kB / 401.5 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.3385, allocations: 37.08 kB / 401.5 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.3385, allocations: 11.06 kB / 401.6 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.3387, allocations: 23.34 kB / 401.6 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.3387, allocations: 13.48 kB / 401.6 MB, free: 42.76 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001891/0.3389, allocations: 172.5 kB / 401.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/0.3391, allocations: 147.1 kB / 401.9 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.129e-05/0.3392, allocations: 31.11 kB / 401.9 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3392, allocations: 8.156 kB / 401.9 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3392, allocations: 3.938 kB / 401.9 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3392, allocations: 1.281 kB / 401.9 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.3394, allocations: 275 kB / 402.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3394, allocations: 1.375 kB / 402.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.3396, allocations: 25.48 kB / 402.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3396, allocations: 2.656 kB / 402.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.3396, allocations: 10.88 kB / 402.3 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3396, allocations: 5.156 kB / 402.3 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3396, allocations: 5.25 kB / 402.3 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003953/0.34, allocations: 243.5 kB / 402.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.3401, allocations: 128.8 kB / 402.6 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/0.3402, allocations: 7.344 kB / 402.6 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.322e-05/0.3403, allocations: 7.562 kB / 402.6 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.3403, allocations: 16.39 kB / 402.7 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.3404, allocations: 5.938 kB / 402.7 MB, free: 41.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.3406, allocations: 249.3 kB / 402.9 MB, free: 41.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3406, allocations: 0 / 402.9 MB, free: 41.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.341, allocations: 48.84 kB / 403 MB, free: 41.71 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0009799/0.342, allocations: 437.1 kB / 403.4 MB, free: 41.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.3423, allocations: 161.5 kB / 403.5 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3423, allocations: 5.844 kB / 403.5 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.414e-05/0.3424, allocations: 28.61 kB / 403.6 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.343, allocations: 124 kB / 403.7 MB, free: 41.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.3437, allocations: 457.5 kB / 404.1 MB, free: 40.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.344, allocations: 0.7732 MB / 404.9 MB, free: 40.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.3441, allocations: 38.06 kB / 404.9 MB, free: 40.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.3441, allocations: 32.02 kB / 405 MB, free: 40.14 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3442, allocations: 0 / 405 MB, free: 40.14 MB / 318.1 MB Notification: Performance of Templates: time 0.006986/0.3511, allocations: 3.491 MB / 408.5 MB, free: 37.72 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches