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.001154/0.001154, allocations: 97.53 kB / 15.73 MB, free: 440 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.001585/0.001585, allocations: 179.4 kB / 16.61 MB, free: 6.43 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.566/1.566, allocations: 205.4 MB / 222.8 MB, free: 5.668 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.08375/0.08375, allocations: 12.6 MB / 283.6 MB, free: 8.723 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.0007661/0.0007662, allocations: 20 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1084, allocations: 50.38 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.002325/0.1108, allocations: 1.295 MB / 396.2 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1119, allocations: 0.5194 MB / 396.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.1121, allocations: 0 / 396.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.029e-05/0.1121, allocations: 7.922 kB / 396.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.1123, allocations: 15.98 kB / 396.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.1127, allocations: 55.81 kB / 396.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.1128, allocations: 39.89 kB / 396.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1129, allocations: 11.98 kB / 396.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.173e-05/0.113, allocations: 19.92 kB / 396.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.1131, allocations: 23.86 kB / 396.9 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.1132, allocations: 4 kB / 396.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.1132, allocations: 4 kB / 396.9 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.644e-05/0.1132, allocations: 15.92 kB / 396.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.1133, allocations: 37.64 kB / 396.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.786e-05/0.1134, allocations: 47.8 kB / 397 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1134, allocations: 0 / 397 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1134, allocations: 0 / 397 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.1134, allocations: 0 / 397 MB, free: 0.6953 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.0004971/0.1139, allocations: 379.3 kB / 397.4 MB, free: 284 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1139, allocations: 12.03 kB / 397.4 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.114, allocations: 15.81 kB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.1142, allocations: 202.7 kB / 397.6 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1143, allocations: 4 kB / 397.6 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1143, allocations: 4 kB / 397.6 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003444/0.1146, allocations: 138.7 kB / 397.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1146, allocations: 0 / 397.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1147, allocations: 4 kB / 397.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.1147, allocations: 0 / 397.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001047/0.1148, allocations: 39.91 kB / 397.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.1152, allocations: 287.4 kB / 398 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.1153, allocations: 98.42 kB / 398.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.1154, allocations: 0 / 398.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.1154, allocations: 42.55 kB / 398.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.61e-07/0.1154, allocations: 0 / 398.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003182/0.1157, allocations: 105.7 kB / 398.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.835e-05/0.1158, allocations: 140.5 kB / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.116, allocations: 146.3 kB / 398.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.116, allocations: 33.7 kB / 398.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.1161, allocations: 88.53 kB / 398.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.1161, allocations: 12 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.1161, allocations: 0 / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1162, allocations: 322.8 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.546e-05/0.1163, allocations: 8 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.347e-05/0.1164, allocations: 49.14 kB / 399.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.85e-05/0.1164, allocations: 27.92 kB / 399.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1164, allocations: 0 / 399.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001694/0.1166, allocations: 93.47 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1167, allocations: 7.984 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.1167, allocations: 0 / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1167, allocations: 4 kB / 399.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.595e-05/0.1168, allocations: 20 kB / 399.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1168, allocations: 0 / 399.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.813e-05/0.1169, allocations: 11.98 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1169, allocations: 4.188 kB / 399.2 MB, free: 14.14 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.0001098/0.117, allocations: 141.4 kB / 399.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1171, allocations: 65.53 kB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.1172, allocations: 15.86 kB / 399.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1172, allocations: 0 / 399.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1172, allocations: 0 / 399.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1172, allocations: 4 kB / 399.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.1174, allocations: 181.5 kB / 399.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1174, allocations: 3.984 kB / 399.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.1175, allocations: 16.09 kB / 399.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1175, allocations: 0 / 399.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1175, allocations: 4 kB / 399.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1175, allocations: 3.984 kB / 399.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1175, allocations: 0 / 399.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1178, allocations: 235.1 kB / 399.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.1179, allocations: 97 kB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.1179, allocations: 0 / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.009e-05/0.118, allocations: 4 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.118, allocations: 8 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.1181, allocations: 11.94 kB / 400 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.125e-05/0.1181, allocations: 111.1 kB / 400.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1181, allocations: 0 / 400.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000242/0.1184, allocations: 11.98 kB / 400.1 MB, free: 13.11 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.0001154/0.1185, allocations: 95.25 kB / 400.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001641/0.1187, allocations: 47.92 kB / 400.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1187, allocations: 4 kB / 400.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.832e-05/0.1187, allocations: 11.98 kB / 400.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.1191, allocations: 36.03 kB / 400.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004225/0.1196, allocations: 236.1 kB / 400.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.1198, allocations: 0.7004 MB / 401.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.279e-05/0.1199, allocations: 8.672 kB / 401.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.17e-05/0.1199, allocations: 15.42 kB / 401.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1199, allocations: 3.938 kB / 401.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Templates: time 0.003546/0.1235, allocations: 0.7407 MB / 402 MB, free: 11.15 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