Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009511/0.0009511, allocations: 84.19 kB / 15.75 MB, free: 416 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.00124/0.00124, allocations: 177.5 kB / 16.63 MB, free: 6.887 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.747/1.747, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.09984/0.09984, allocations: 12.6 MB / 283.7 MB, free: 8.695 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.0007516/0.0007521, allocations: 20 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.123, allocations: 50.38 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.002365/0.1255, allocations: 1.302 MB / 396.2 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.1266, allocations: 0.5273 MB / 396.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1267, allocations: 3.938 kB / 396.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.406e-05/0.1268, allocations: 11.92 kB / 396.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.127, allocations: 7.938 kB / 396.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.1273, allocations: 47.89 kB / 396.8 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.1274, allocations: 55.78 kB / 396.9 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1276, allocations: 19.92 kB / 396.9 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.742e-05/0.1276, allocations: 23.86 kB / 396.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.1277, allocations: 23.86 kB / 396.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.1278, allocations: 8 kB / 396.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.23e-05/0.1278, allocations: 0 / 396.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.936e-05/0.1278, allocations: 11.92 kB / 397 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.726e-05/0.1279, allocations: 33.7 kB / 397 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.154e-05/0.128, allocations: 47.8 kB / 397 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.128, allocations: 4 kB / 397 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.128, allocations: 0 / 397 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.128, allocations: 0 / 397 MB, free: 0.6445 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005935/0.1286, allocations: 371.3 kB / 397.4 MB, free: 240 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1286, allocations: 12.03 kB / 397.4 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.1287, allocations: 15.81 kB / 397.4 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.129, allocations: 206.8 kB / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.129, allocations: 0 / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.129, allocations: 8 kB / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.1294, allocations: 138.7 kB / 397.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1294, allocations: 4 kB / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.1294, allocations: 0 / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1294, allocations: 0 / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/0.1295, allocations: 35.92 kB / 397.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.1299, allocations: 287.5 kB / 398.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.1301, allocations: 94.36 kB / 398.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.839e-05/0.1302, allocations: 47.48 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.1302, allocations: 0 / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1303, allocations: 38.56 kB / 398.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 4.208e-06/0.1303, allocations: 3.984 kB / 398.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003359/0.1306, allocations: 113.3 kB / 398.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.46e-05/0.1307, allocations: 141 kB / 398.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.1309, allocations: 150.3 kB / 398.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1309, allocations: 29.7 kB / 398.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.169e-05/0.131, allocations: 88.33 kB / 398.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.131, allocations: 4 kB / 398.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/0.131, allocations: 0 / 398.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1311, allocations: 322.8 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.817e-05/0.1312, allocations: 19.92 kB / 399.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.83e-05/0.1313, allocations: 49.16 kB / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.659e-05/0.1313, allocations: 23.98 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1313, allocations: 0 / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001695/0.1315, allocations: 89.45 kB / 399.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1315, allocations: 4 kB / 399.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1316, allocations: 0 / 399.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1316, allocations: 4 kB / 399.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.399e-05/0.1317, allocations: 24.11 kB / 399.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.1317, allocations: 3.938 kB / 399.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.02e-05/0.1317, allocations: 4 kB / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.1318, allocations: 4 kB / 399.3 MB, free: 14.04 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 0.0001069/0.1319, allocations: 137.5 kB / 399.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.845e-05/0.132, allocations: 61.53 kB / 399.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.132, allocations: 11.97 kB / 399.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.132, allocations: 4 kB / 399.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1321, allocations: 0 / 399.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1321, allocations: 4 kB / 399.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.1323, allocations: 185.5 kB / 399.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1323, allocations: 0 / 399.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.263e-05/0.1324, allocations: 19.92 kB / 399.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.1324, allocations: 0 / 399.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.1324, allocations: 4 kB / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1324, allocations: 0 / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1324, allocations: 128 / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.1326, allocations: 209.9 kB / 399.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.532e-05/0.1327, allocations: 97 kB / 400 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.1327, allocations: 0 / 400 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.377e-05/0.1328, allocations: 11.98 kB / 400.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.1329, allocations: 0 / 400.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.1329, allocations: 4 kB / 400.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.893e-05/0.133, allocations: 119.1 kB / 400.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.133, allocations: 0 / 400.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1332, allocations: 8 kB / 400.2 MB, free: 13.07 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 0.0001104/0.1333, allocations: 91.25 kB / 400.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.1335, allocations: 51.91 kB / 400.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1335, allocations: 0 / 400.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.088e-05/0.1336, allocations: 15.94 kB / 400.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.134, allocations: 43.88 kB / 400.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.1345, allocations: 232.2 kB / 400.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.1348, allocations: 0.7043 MB / 401.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.239e-05/0.1348, allocations: 4.672 kB / 401.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.1348, allocations: 11.44 kB / 401.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1349, allocations: 0 / 401.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Templates: time 0.003298/0.1382, allocations: 0.7524 MB / 402.1 MB, free: 11.1 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time