Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 175.3 kB / 16.76 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008053/0.0008052, allocations: 96.31 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06709/0.06709, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004055, allocations: 20 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07498/0.0754, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001415/0.07686, allocations: 1.25 MB / 444.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007073/0.0776, allocations: 492 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.636e-05/0.07771, allocations: 4 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.465e-05/0.07776, allocations: 3.938 kB / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.07791, allocations: 7.938 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.07818, allocations: 43.83 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.305e-05/0.07827, allocations: 39.86 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.07838, allocations: 8 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.826e-05/0.07846, allocations: 19.91 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.476e-05/0.07852, allocations: 23.92 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.04e-05/0.07857, allocations: 3.938 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.39e-05/0.07859, allocations: 4 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.442e-05/0.07863, allocations: 4 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.379e-05/0.07867, allocations: 49.5 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.873e-05/0.07874, allocations: 35.88 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.07876, allocations: 0 / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.07877, allocations: 4 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.07878, allocations: 0 / 444.9 MB, free: 14.12 MB / 298.7 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.0003812/0.07916, allocations: 367.5 kB / 445.3 MB, free: 13.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.07921, allocations: 12.03 kB / 445.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.07925, allocations: 12.84 kB / 445.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.07941, allocations: 188.1 kB / 445.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.07943, allocations: 12.31 kB / 445.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.07945, allocations: 384 / 445.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.0797, allocations: 113.3 kB / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.07972, allocations: 0 / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.07974, allocations: 0 / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.07975, allocations: 0 / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.44e-05/0.07983, allocations: 19.98 kB / 445.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000242/0.08008, allocations: 273.7 kB / 445.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.888e-05/0.08016, allocations: 49.16 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.356e-05/0.08021, allocations: 17.77 kB / 446 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.08024, allocations: 8 kB / 446 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.08026, allocations: 38.44 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.08026, allocations: 0 / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000212/0.08048, allocations: 73.58 kB / 446.1 MB, free: 12.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.08052, allocations: 85.3 kB / 446.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.08061, allocations: 138.1 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.08062, allocations: 25.7 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.036e-05/0.08066, allocations: 88.14 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.08068, allocations: 0 / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/0.08069, allocations: 4 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.221e-05/0.08073, allocations: 318.8 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.738e-05/0.08078, allocations: 8 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.08082, allocations: 25.7 kB / 446.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.076e-05/0.0809, allocations: 41.58 kB / 446.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.0809, allocations: 0 / 446.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.08101, allocations: 69.59 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.08103, allocations: 4 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.08104, allocations: 0 / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.08106, allocations: 4 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.559e-05/0.08113, allocations: 4 kB / 446.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.08115, allocations: 3.984 kB / 446.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.55e-05/0.08119, allocations: 8 kB / 446.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.0812, allocations: 4 kB / 446.9 MB, free: 11.89 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.523e-05/0.08126, allocations: 122.4 kB / 447 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.647e-05/0.08131, allocations: 41.59 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.08134, allocations: 15.83 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.08135, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.08136, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.08137, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.08148, allocations: 169.6 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.08149, allocations: 4.031 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.637e-05/0.08154, allocations: 7.984 kB / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.08155, allocations: 4 kB / 447.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.08157, allocations: 7.984 kB / 447.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.08157, allocations: 3.984 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.08158, allocations: 0 / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.08171, allocations: 168.2 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.08176, allocations: 96.94 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.08178, allocations: 3.984 kB / 447.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.2e-05/0.08184, allocations: 4 kB / 447.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.08188, allocations: 0 / 447.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.08189, allocations: 0 / 447.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.74e-05/0.08194, allocations: 111.2 kB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08195, allocations: 0 / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002013/0.08216, allocations: 8.031 kB / 447.7 MB, free: 11.03 MB / 298.7 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 (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 6.295e-05/0.08222, allocations: 91.25 kB / 447.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.08235, allocations: 27.92 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.08236, allocations: 0 / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.0824, allocations: 12.11 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.08276, allocations: 24.03 kB / 447.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00027/0.08304, allocations: 203.1 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.08316, allocations: 0.6927 MB / 448.7 MB, free: 9.918 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.08319, allocations: 11.44 kB / 448.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.0832, allocations: 3.938 kB / 448.7 MB, free: 9.902 MB / 298.7 MB Notification: Performance of Templates: time 0.001578/0.08478, allocations: 0.707 MB / 449.4 MB, free: 9.199 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches