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.001238/0.001238, allocations: 109.2 kB / 16.46 MB, free: 6.453 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.001369/0.00137, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.644/1.644, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.08026/0.08026, allocations: 12.58 MB / 283.2 MB, free: 15.39 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.001836/0.001836, allocations: 85.64 kB / 394.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 49.41 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.003192/0.1052, allocations: 1.539 MB / 445.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1064, allocations: 0.5307 MB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.1066, allocations: 4 kB / 445.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.332e-05/0.1066, allocations: 11.86 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.1068, allocations: 3.938 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1072, allocations: 51.83 kB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.1074, allocations: 47.78 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.1075, allocations: 28.09 kB / 445.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1077, allocations: 23.86 kB / 445.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.1078, allocations: 23.86 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.1078, allocations: 4 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.2e-05/0.1078, allocations: 0 / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.1079, allocations: 15.92 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.108, allocations: 31.8 kB / 445.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.1081, allocations: 47.77 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1081, allocations: 8 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1081, allocations: 0 / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1082, allocations: 0 / 445.9 MB, free: 14.11 MB / 334.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.0006778/0.1088, allocations: 375.1 kB / 446.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1089, allocations: 12.03 kB / 446.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.109, allocations: 8.844 kB / 446.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.1093, allocations: 204.1 kB / 446.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.1093, allocations: 4.312 kB / 446.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.1093, allocations: 12.38 kB / 446.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.1096, allocations: 109.1 kB / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.1096, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1097, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1097, allocations: 0 / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.385e-05/0.1098, allocations: 23.98 kB / 446.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.1101, allocations: 269.6 kB / 446.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.137e-05/0.1102, allocations: 33.22 kB / 446.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.375e-05/0.1103, allocations: 33.77 kB / 447 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.1103, allocations: 0 / 447 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.1103, allocations: 38.5 kB / 447 MB, free: 12.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.1103, allocations: 0 / 447 MB, free: 12.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002558/0.1106, allocations: 73.52 kB / 447.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.1107, allocations: 77.36 kB / 447.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.1108, allocations: 141.8 kB / 447.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.1108, allocations: 25.7 kB / 447.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.1109, allocations: 92.12 kB / 447.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.1109, allocations: 4 kB / 447.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.111, allocations: 13.72 kB / 447.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1111, allocations: 322.8 kB / 447.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.094e-05/0.1112, allocations: 4 kB / 447.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.808e-05/0.1112, allocations: 25.72 kB / 447.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.101e-05/0.1113, allocations: 29.64 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1113, allocations: 0 / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001175/0.1115, allocations: 57.59 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1115, allocations: 4.125 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1115, allocations: 4 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1115, allocations: 0 / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.234e-05/0.1116, allocations: 7.984 kB / 447.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1116, allocations: 7.938 kB / 447.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.706e-05/0.1117, allocations: 0 / 447.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.1117, allocations: 0 / 447.9 MB, free: 11.87 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.294e-05/0.1118, allocations: 121.8 kB / 448 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.1119, allocations: 41.59 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.1119, allocations: 15.86 kB / 448.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1119, allocations: 3.938 kB / 448.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1119, allocations: 4 kB / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1119, allocations: 0 / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.1121, allocations: 169.6 kB / 448.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1122, allocations: 0 / 448.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.1122, allocations: 15.92 kB / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1122, allocations: 0 / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.1122, allocations: 0 / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1122, allocations: 0 / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1122, allocations: 3.938 kB / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.1125, allocations: 172.2 kB / 448.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.1125, allocations: 89 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.1126, allocations: 4 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.399e-05/0.1126, allocations: 4 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.173e-05/0.1127, allocations: 0 / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.1127, allocations: 8.031 kB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.524e-05/0.1128, allocations: 111.9 kB / 448.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1128, allocations: 0 / 448.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.113, allocations: 4 kB / 448.6 MB, free: 11.02 MB / 334.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 (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.0001014/0.1131, allocations: 91.25 kB / 448.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1133, allocations: 27.92 kB / 448.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1133, allocations: 128 / 448.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.682e-05/0.1133, allocations: 11.98 kB / 448.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.1137, allocations: 27.89 kB / 448.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003732/0.1141, allocations: 167.3 kB / 449 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1145, allocations: 0.6846 MB / 449.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.351e-05/0.1145, allocations: 8.141 kB / 449.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.1146, allocations: 15.44 kB / 449.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1146, allocations: 0 / 449.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of Templates: time 0.003046/0.1176, allocations: 0.571 MB / 450.2 MB, free: 9.352 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches