Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008696/0.0008696, allocations: 175.4 kB / 16.45 MB, free: 5.684 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.469/1.469, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008176/0.0008174, allocations: 89.11 kB / 270.9 MB, free: 8.359 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.08072/0.08072, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000466/0.0004658, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09473, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001553/0.09634, allocations: 1.195 MB / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003809/0.09675, allocations: 143.7 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.676e-05/0.09687, allocations: 0 / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.605e-05/0.09692, allocations: 7.922 kB / 443.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.09705, allocations: 4 kB / 443.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.09731, allocations: 27.91 kB / 443.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.94e-05/0.0974, allocations: 23.92 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.522e-05/0.0975, allocations: 8 kB / 443.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.167e-05/0.09754, allocations: 7.938 kB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.402e-05/0.09759, allocations: 11.92 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.09762, allocations: 4 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.171e-05/0.09763, allocations: 0 / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.565e-05/0.09767, allocations: 11.94 kB / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.0977, allocations: 29.7 kB / 443.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.968e-05/0.09778, allocations: 31.94 kB / 443.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.09779, allocations: 3.938 kB / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09779, allocations: 0 / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.0978, allocations: 0 / 443.9 MB, free: 14.93 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000379/0.09819, allocations: 355.4 kB / 444.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.09824, allocations: 12.03 kB / 444.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.636e-05/0.09828, allocations: 7.906 kB / 444.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.09844, allocations: 190.8 kB / 444.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.09846, allocations: 4 kB / 444.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.09847, allocations: 3.953 kB / 444.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.0987, allocations: 97.05 kB / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.09872, allocations: 0 / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.09873, allocations: 0 / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.09874, allocations: 0 / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.25e-05/0.09882, allocations: 19.92 kB / 444.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002624/0.09909, allocations: 265.8 kB / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.754e-05/0.09918, allocations: 49.16 kB / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.426e-05/0.09923, allocations: 21.77 kB / 444.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.09926, allocations: 0 / 444.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.09928, allocations: 34.56 kB / 444.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.09929, allocations: 0 / 444.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002541/0.09955, allocations: 73.52 kB / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.0996, allocations: 81.11 kB / 445.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.783e-05/0.09969, allocations: 134.3 kB / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.605e-06/0.09971, allocations: 25.7 kB / 445.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.368e-05/0.09975, allocations: 88.14 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.09976, allocations: 3.906 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.09977, allocations: 0 / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.249e-05/0.09983, allocations: 322.8 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.741e-05/0.09987, allocations: 8 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.7e-05/0.09991, allocations: 29.7 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.07e-05/0.09996, allocations: 15.94 kB / 445.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.09997, allocations: 0 / 445.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001004/0.1001, allocations: 49.62 kB / 445.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1001, allocations: 8.125 kB / 445.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1001, allocations: 7.984 kB / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1001, allocations: 4 kB / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.876e-05/0.1002, allocations: 4 kB / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1002, allocations: 7.938 kB / 445.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.961e-05/0.1003, allocations: 4 kB / 445.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.1003, allocations: 4 kB / 445.8 MB, free: 12.78 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.832e-05/0.1003, allocations: 121.6 kB / 445.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.1004, allocations: 41.61 kB / 445.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.1004, allocations: 11.83 kB / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1004, allocations: 0 / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1005, allocations: 4 kB / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1005, allocations: 3.984 kB / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1006, allocations: 169.6 kB / 446.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1006, allocations: 0 / 446.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.1006, allocations: 11.92 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1007, allocations: 4 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1007, allocations: 0 / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1007, allocations: 4.031 kB / 446.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1007, allocations: 3.938 kB / 446.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.1008, allocations: 156.3 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.258e-05/0.1008, allocations: 89.05 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.1009, allocations: 4.031 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.635e-05/0.1009, allocations: 4 kB / 446.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.101, allocations: 7.984 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.101, allocations: 0 / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.542e-05/0.101, allocations: 103.3 kB / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.101, allocations: 0 / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002044/0.1012, allocations: 0 / 446.5 MB, free: 11.95 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: 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 (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 7.102e-05/0.1013, allocations: 99.23 kB / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.1014, allocations: 31.92 kB / 446.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1015, allocations: 0 / 446.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.214e-05/0.1015, allocations: 7.984 kB / 446.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.1018, allocations: 16.03 kB / 446.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002815/0.1021, allocations: 191.3 kB / 446.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.1022, allocations: 0.6848 MB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.1023, allocations: 7.438 kB / 447.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1023, allocations: 0 / 447.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of Templates: time 0.001828/0.1041, allocations: 0.6327 MB / 448.1 MB, free: 10.21 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches