Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 96.55 kB / 15.74 MB, free: 424 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.001015/0.001015, allocations: 173.5 kB / 16.62 MB, free: 6.613 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.663/1.663, allocations: 205.4 MB / 222.8 MB, free: 5.582 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.1041/0.1041, allocations: 12.59 MB / 283.7 MB, free: 8.699 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.0007582/0.0007584, allocations: 24 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1193, allocations: 50.37 MB / 394.9 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.002091/0.1214, allocations: 1.247 MB / 396.2 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1227, allocations: 0.5039 MB / 396.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001919/0.123, allocations: 4 kB / 396.7 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.881e-05/0.123, allocations: 3.938 kB / 396.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.1233, allocations: 11.92 kB / 396.7 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.1239, allocations: 43.83 kB / 396.7 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.1241, allocations: 39.86 kB / 396.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.1243, allocations: 16.17 kB / 396.8 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.1245, allocations: 19.86 kB / 396.8 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.1246, allocations: 19.86 kB / 396.8 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.1246, allocations: 8 kB / 396.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.1246, allocations: 0 / 396.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.87e-05/0.1247, allocations: 11.92 kB / 396.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.289e-05/0.1248, allocations: 37.64 kB / 396.9 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.1249, allocations: 35.94 kB / 396.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.1249, allocations: 0 / 396.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.1249, allocations: 0 / 396.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.125, allocations: 0 / 396.9 MB, free: 0.7734 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008941/0.1259, allocations: 375.3 kB / 397.3 MB, free: 368 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.898e-05/0.1259, allocations: 8.031 kB / 397.3 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.593e-05/0.126, allocations: 7.906 kB / 397.3 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.1264, allocations: 198.8 kB / 397.5 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.1264, allocations: 0 / 397.5 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.146e-05/0.1265, allocations: 15.92 kB / 397.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.127, allocations: 101 kB / 397.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.127, allocations: 0 / 397.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.127, allocations: 0 / 397.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1271, allocations: 7.984 kB / 397.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.946e-05/0.1272, allocations: 19.98 kB / 397.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/0.1277, allocations: 265.8 kB / 397.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.1279, allocations: 45.14 kB / 397.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.053e-05/0.128, allocations: 21.78 kB / 397.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.128, allocations: 0 / 397.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.128, allocations: 46.48 kB / 398 MB, free: 15.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1281, allocations: 0 / 398 MB, free: 15.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003511/0.1284, allocations: 69.59 kB / 398.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/0.1285, allocations: 85.28 kB / 398.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.1287, allocations: 145.6 kB / 398.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.1287, allocations: 29.7 kB / 398.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.1288, allocations: 92.12 kB / 398.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.1288, allocations: 7.891 kB / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.1288, allocations: 0 / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.129, allocations: 314.8 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.515e-05/0.129, allocations: 11.98 kB / 398.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.42e-05/0.1291, allocations: 21.72 kB / 398.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.1291, allocations: 15.98 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1291, allocations: 0 / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001304/0.1293, allocations: 57.72 kB / 398.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.1293, allocations: 9.25 kB / 398.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1293, allocations: 0 / 398.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1293, allocations: 0 / 398.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.466e-05/0.1294, allocations: 19.92 kB / 398.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.1294, allocations: 4 kB / 398.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.966e-05/0.1295, allocations: 3.953 kB / 398.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.1295, allocations: 4 kB / 398.9 MB, free: 14.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/0.1296, allocations: 121.6 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/0.1297, allocations: 49.53 kB / 399 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.1297, allocations: 3.875 kB / 399 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1297, allocations: 4 kB / 399 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1297, allocations: 0 / 399 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1297, allocations: 0 / 399 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.1299, allocations: 169.6 kB / 399.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.1299, allocations: 4 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.693e-05/0.13, allocations: 7.984 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.13, allocations: 0 / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.13, allocations: 4.031 kB / 399.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.13, allocations: 4 kB / 399.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.13, allocations: 0 / 399.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.1302, allocations: 168.2 kB / 399.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.82e-05/0.1303, allocations: 93 kB / 399.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1303, allocations: 8.031 kB / 399.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.335e-05/0.1304, allocations: 0 / 399.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1304, allocations: 4 kB / 399.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1305, allocations: 0 / 399.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.037e-05/0.1305, allocations: 107.2 kB / 399.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1305, allocations: 0 / 399.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.1308, allocations: 11.95 kB / 399.6 MB, free: 13.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.728e-05/0.1309, allocations: 91.25 kB / 399.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001435/0.131, allocations: 27.98 kB / 399.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1311, allocations: 0 / 399.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-05/0.1311, allocations: 15.92 kB / 399.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.1315, allocations: 19.97 kB / 399.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/0.1319, allocations: 189.8 kB / 399.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.1322, allocations: 0.6887 MB / 400.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.49e-05/0.1322, allocations: 4 kB / 400.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.1323, allocations: 11.44 kB / 400.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1323, allocations: 0 / 400.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Templates: time 0.00305/0.1353, allocations: 0.5274 MB / 401.2 MB, free: 12.08 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time