Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001677, allocations: 103.4 kB / 16.31 MB, free: 5.879 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.001828/0.001828, allocations: 191.8 kB / 17.24 MB, free: 5.539 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.704/1.704, allocations: 205.1 MB / 223.1 MB, free: 12.26 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.09284/0.09284, allocations: 12.59 MB / 283.1 MB, free: 15.46 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.002011/0.002011, allocations: 94.83 kB / 343.5 MB, free: 2.934 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.403, allocations: 49.38 MB / 392.9 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003017/0.4061, allocations: 1.48 MB / 394.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003875/0.4065, allocations: 135.7 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.113e-05/0.4066, allocations: 1.125 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.515e-05/0.4066, allocations: 4.5 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.4068, allocations: 11.39 kB / 394.5 MB, free: 48.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.4072, allocations: 35.14 kB / 394.5 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.4073, allocations: 26.44 kB / 394.6 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.4074, allocations: 11.5 kB / 394.6 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.655e-05/0.4075, allocations: 12.95 kB / 394.6 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.4076, allocations: 17.2 kB / 394.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.4076, allocations: 1.312 kB / 394.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/0.4076, allocations: 3.094 kB / 394.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.06e-05/0.4077, allocations: 13.02 kB / 394.6 MB, free: 48.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.4077, allocations: 22.03 kB / 394.7 MB, free: 47.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.4079, allocations: 42.02 kB / 394.7 MB, free: 47.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4079, allocations: 0 / 394.7 MB, free: 47.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4079, allocations: 0 / 394.7 MB, free: 47.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4079, allocations: 0 / 394.7 MB, free: 47.97 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005435/0.4084, allocations: 364 kB / 395 MB, free: 47.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.4085, allocations: 9.844 kB / 395.1 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.4086, allocations: 8 kB / 395.1 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.4088, allocations: 191.4 kB / 395.3 MB, free: 47.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.4088, allocations: 6.125 kB / 395.3 MB, free: 47.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.4088, allocations: 11.61 kB / 395.3 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.4091, allocations: 89.98 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4091, allocations: 1.406 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.4091, allocations: 3.938 kB / 395.4 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.4092, allocations: 0.9688 kB / 395.4 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.037e-05/0.4092, allocations: 20.94 kB / 395.4 MB, free: 47.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003469/0.4096, allocations: 258 kB / 395.6 MB, free: 46.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.388e-05/0.4097, allocations: 46.17 kB / 395.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.984e-05/0.4098, allocations: 25.36 kB / 395.7 MB, free: 46.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.4098, allocations: 3.938 kB / 395.7 MB, free: 46.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.4098, allocations: 32.8 kB / 395.7 MB, free: 46.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 2.515e-06/0.4098, allocations: 0 / 395.7 MB, free: 46.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002644/0.4101, allocations: 65.23 kB / 395.8 MB, free: 46.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.4102, allocations: 82.58 kB / 395.9 MB, free: 46.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.4103, allocations: 132.6 kB / 396 MB, free: 46.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.4103, allocations: 25.7 kB / 396 MB, free: 46.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.856e-05/0.4104, allocations: 87.91 kB / 396.1 MB, free: 46.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.4104, allocations: 3.906 kB / 396.1 MB, free: 46.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.4105, allocations: 18.97 kB / 396.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4106, allocations: 313.5 kB / 396.5 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.548e-05/0.4106, allocations: 10.12 kB / 396.5 MB, free: 46.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.352e-05/0.4107, allocations: 25.08 kB / 396.5 MB, free: 46.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.476e-05/0.4108, allocations: 23.47 kB / 396.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4108, allocations: 0 / 396.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001184/0.4109, allocations: 61.78 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.4109, allocations: 4.875 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4109, allocations: 1.25 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.411, allocations: 2.125 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.551e-05/0.411, allocations: 4.484 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.4111, allocations: 1.766 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.4111, allocations: 5.875 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.619e-06/0.4111, allocations: 2.062 kB / 396.6 MB, free: 46.07 MB / 318.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: 2 (step.y,sample.y) * 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 8.469e-05/0.4112, allocations: 119.5 kB / 396.7 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.946e-05/0.4113, allocations: 38.52 kB / 396.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.4113, allocations: 16.02 kB / 396.8 MB, free: 45.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4113, allocations: 3.938 kB / 396.8 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4113, allocations: 2.281 kB / 396.8 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4113, allocations: 0 / 396.8 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.4115, allocations: 169.8 kB / 396.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4115, allocations: 0 / 396.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-05/0.4116, allocations: 5.109 kB / 396.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4116, allocations: 1.719 kB / 396.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.4116, allocations: 1.312 kB / 396.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4116, allocations: 4.797 kB / 397 MB, free: 45.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4116, allocations: 5.031 kB / 397 MB, free: 45.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001723/0.4118, allocations: 154.9 kB / 397.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.081e-05/0.4119, allocations: 97.11 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.4119, allocations: 2.047 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.357e-05/0.412, allocations: 5.797 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.412, allocations: 6.281 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.412, allocations: 1.406 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.835e-05/0.4121, allocations: 109.5 kB / 397.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4121, allocations: 0 / 397.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.4124, allocations: 3.844 kB / 397.3 MB, free: 45.34 MB / 318.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: 2 (step.y,sample.y) * 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.0001449/0.4125, allocations: 100.5 kB / 397.4 MB, free: 45.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.4127, allocations: 24.66 kB / 397.4 MB, free: 45.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4127, allocations: 0 / 397.4 MB, free: 45.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.692e-05/0.4128, allocations: 11.11 kB / 397.5 MB, free: 45.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.4132, allocations: 18.92 kB / 397.5 MB, free: 45.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004179/0.4136, allocations: 138.4 kB / 397.6 MB, free: 45.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.4139, allocations: 0.6952 MB / 398.3 MB, free: 44.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.957e-05/0.4139, allocations: 1.375 kB / 398.3 MB, free: 44.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.414, allocations: 10 kB / 398.3 MB, free: 44.39 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.414, allocations: 0 / 398.3 MB, free: 44.39 MB / 318.1 MB Notification: Performance of Templates: time 0.003568/0.4175, allocations: 444.9 kB / 398.8 MB, free: 44.25 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches