Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 100.3 kB / 15.73 MB, free: 436 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.002865/0.002865, allocations: 178.2 kB / 16.61 MB, free: 6.418 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.593/1.593, 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.08889/0.08889, allocations: 12.6 MB / 283.6 MB, free: 8.707 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.0007535/0.0007535, allocations: 24 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1058, allocations: 50.39 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.002228/0.1081, allocations: 1.268 MB / 396.2 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.1092, allocations: 0.496 MB / 396.7 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1094, allocations: 8 kB / 396.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.242e-05/0.1095, allocations: 3.938 kB / 396.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.1097, allocations: 7.984 kB / 396.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.1101, allocations: 47.83 kB / 396.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1102, allocations: 27.89 kB / 396.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.1104, allocations: 12.19 kB / 396.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.77e-05/0.1105, allocations: 19.92 kB / 396.8 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.786e-05/0.1106, allocations: 19.91 kB / 396.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.1106, allocations: 4 kB / 396.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.575e-05/0.1106, allocations: 0 / 396.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.1107, allocations: 11.94 kB / 396.8 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.451e-05/0.1108, allocations: 37.64 kB / 396.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.774e-05/0.1109, allocations: 31.94 kB / 396.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1109, allocations: 4 kB / 396.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.494e-05/0.1109, allocations: 0 / 396.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1109, allocations: 0 / 396.9 MB, free: 0.7695 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.0005502/0.1115, allocations: 375.2 kB / 397.3 MB, free: 364 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1115, allocations: 8.031 kB / 397.3 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.1116, allocations: 7.906 kB / 397.3 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.1118, allocations: 202.8 kB / 397.5 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.1119, allocations: 0 / 397.5 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.1119, allocations: 7.938 kB / 397.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.1123, allocations: 117.9 kB / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1124, allocations: 0 / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1124, allocations: 0 / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1124, allocations: 3.984 kB / 397.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1125, allocations: 23.98 kB / 397.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.113, allocations: 282.5 kB / 397.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.1131, allocations: 71.78 kB / 398 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.1131, allocations: 4 kB / 398 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.1132, allocations: 38.61 kB / 398 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.1132, allocations: 0 / 398 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002858/0.1135, allocations: 85.89 kB / 398.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.1136, allocations: 110.8 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1137, allocations: 149.5 kB / 398.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1137, allocations: 29.69 kB / 398.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.1138, allocations: 88.05 kB / 398.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.1138, allocations: 8 kB / 398.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-06/0.1138, allocations: 0 / 398.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1139, allocations: 318.8 kB / 398.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.576e-05/0.114, allocations: 16 kB / 398.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.914e-05/0.114, allocations: 31.42 kB / 398.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.259e-05/0.1141, allocations: 19.94 kB / 398.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1141, allocations: 4 kB / 398.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001478/0.1143, allocations: 77.52 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1143, allocations: 4 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.1143, allocations: 0 / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1143, allocations: 4 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.941e-05/0.1144, allocations: 11.98 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1145, allocations: 4.125 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.639e-05/0.1145, allocations: 7.953 kB / 399 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.1145, allocations: 0 / 399 MB, free: 14.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.0001358/0.1147, allocations: 129.5 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.717e-05/0.1147, allocations: 45.61 kB / 399.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.1148, allocations: 15.86 kB / 399.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1148, allocations: 0 / 399.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1148, allocations: 8.062 kB / 399.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1148, allocations: 4 kB / 399.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.115, allocations: 169.6 kB / 399.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.115, allocations: 4 kB / 399.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-05/0.1151, allocations: 15.92 kB / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.1151, allocations: 0 / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.1151, allocations: 0 / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1151, allocations: 4 kB / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1151, allocations: 0 / 399.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.1154, allocations: 204.5 kB / 399.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.244e-05/0.1155, allocations: 93 kB / 399.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.1155, allocations: 4 kB / 399.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.573e-05/0.1156, allocations: 7.984 kB / 399.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.1156, allocations: 7.953 kB / 399.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1156, allocations: 3.938 kB / 399.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.359e-05/0.1157, allocations: 111.9 kB / 399.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1157, allocations: 0 / 399.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000238/0.116, allocations: 8 kB / 399.8 MB, free: 13.48 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002568/0.1162, allocations: 95.19 kB / 399.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.1164, allocations: 43.86 kB / 399.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1164, allocations: 3.938 kB / 399.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.1165, allocations: 11.98 kB / 399.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.1169, allocations: 28.02 kB / 400 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004732/0.1174, allocations: 195 kB / 400.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.1178, allocations: 0.6965 MB / 400.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.533e-05/0.1178, allocations: 8.312 kB / 400.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.1179, allocations: 15.44 kB / 400.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1179, allocations: 0 / 400.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of Templates: time 0.003836/0.1217, allocations: 0.558 MB / 401.4 MB, free: 11.77 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result: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