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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 186.4 kB / 7.841 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009119/0.0009117, allocations: 91.36 kB / 261.5 MB, free: 13.56 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.07511/0.07511, allocations: 12.6 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.384e-06/7.514e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3062/0.4117, allocations: 76.78 MB / 0.4937 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.412, allocations: 77.38 kB / 0.4938 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002462/0.4145, allocations: 0.7415 MB / 0.4945 GB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.4145, allocations: 7.969 kB / 0.4945 GB, free: 11.63 MB / 330.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.0002834/0.4148, allocations: 339.3 kB / 0.4948 GB, free: 11.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4149, allocations: 7.688 kB / 0.4948 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.983e-05/0.4149, allocations: 9.109 kB / 0.4948 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.4151, allocations: 188.8 kB / 0.495 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.4151, allocations: 0 / 0.495 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.4151, allocations: 3.875 kB / 0.495 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.838e-05/0.4152, allocations: 15.22 kB / 0.495 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.4154, allocations: 84.42 kB / 0.4951 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.4154, allocations: 0 / 0.4951 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.4154, allocations: 0.9375 kB / 0.4951 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4154, allocations: 4 kB / 0.4951 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002858/0.4157, allocations: 241.3 kB / 0.4954 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.892e-05/0.4158, allocations: 39.91 kB / 0.4954 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.4158, allocations: 17.69 kB / 0.4954 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.4158, allocations: 3.5 kB / 0.4954 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.4158, allocations: 30.56 kB / 0.4954 GB, free: 10.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.4158, allocations: 3.906 kB / 0.4954 GB, free: 10.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001309/0.416, allocations: 42.66 kB / 0.4955 GB, free: 10.6 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.416, allocations: 86.69 kB / 0.4956 GB, free: 10.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.4161, allocations: 120 kB / 0.4957 GB, free: 10.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.4161, allocations: 29.33 kB / 0.4957 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/0.4161, allocations: 81.31 kB / 0.4958 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.103e-06/0.4162, allocations: 0 / 0.4958 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.4162, allocations: 3.562 kB / 0.4958 GB, free: 10.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.832e-05/0.4162, allocations: 315.2 kB / 0.4961 GB, free: 9.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.4162, allocations: 0 / 0.4961 GB, free: 9.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.512e-05/0.4163, allocations: 18.56 kB / 0.4961 GB, free: 9.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.551e-05/0.4163, allocations: 10.91 kB / 0.4961 GB, free: 9.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.4163, allocations: 3.906 kB / 0.4961 GB, free: 9.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.267e-05/0.4164, allocations: 35.75 kB / 0.4962 GB, free: 9.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.4164, allocations: 3.844 kB / 0.4962 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4164, allocations: 3.844 kB / 0.4962 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.4164, allocations: 0 / 0.4962 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.047e-05/0.4165, allocations: 9.984 kB / 0.4962 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4165, allocations: 4.625 kB / 0.4962 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.246e-05/0.4165, allocations: 12.91 kB / 0.4962 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.4165, allocations: 3.844 kB / 0.4962 GB, free: 9.906 MB / 330.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 (sample.u,sample.y) * Number of discrete 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.456e-05/0.4166, allocations: 104.9 kB / 0.4963 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.4167, allocations: 37.88 kB / 0.4963 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.4167, allocations: 8.719 kB / 0.4963 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.4167, allocations: 0 / 0.4963 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4167, allocations: 9.109 kB / 0.4964 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4167, allocations: 0 / 0.4964 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.4169, allocations: 141.6 kB / 0.4965 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4169, allocations: 0 / 0.4965 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.921e-05/0.4169, allocations: 12.86 kB / 0.4965 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.4169, allocations: 0 / 0.4965 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.4169, allocations: 1.266 kB / 0.4965 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4169, allocations: 0 / 0.4965 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4169, allocations: 0 / 0.4965 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.09e-05/0.417, allocations: 163.2 kB / 0.4967 GB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.221e-05/0.4171, allocations: 91.31 kB / 0.4967 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.4171, allocations: 3.875 kB / 0.4967 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.69e-05/0.4172, allocations: 4.672 kB / 0.4968 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.4172, allocations: 0.7031 kB / 0.4968 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.4172, allocations: 4.031 kB / 0.4968 GB, free: 9.324 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.696e-05/0.4173, allocations: 102.3 kB / 0.4969 GB, free: 9.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002179/0.4175, allocations: 3.938 kB / 0.4969 GB, free: 9.25 MB / 330.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 (sample.u,sample.y) * Number of discrete 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 8.112e-05/0.4176, allocations: 99.53 kB / 0.497 GB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.486e-05/0.4177, allocations: 7.344 kB / 0.497 GB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4177, allocations: 3.812 kB / 0.497 GB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.317e-05/0.4177, allocations: 7.875 kB / 0.497 GB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.4179, allocations: 17.12 kB / 0.497 GB, free: 9.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002245/0.4182, allocations: 85.22 kB / 0.4971 GB, free: 9.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.4184, allocations: 0.7005 MB / 0.4978 GB, free: 8.352 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4184, allocations: 0 / 0.4978 GB, free: 8.352 MB / 330.7 MB Notification: Performance of Templates: time 0.002123/0.4205, allocations: 429.2 kB / 0.4982 GB, free: 8.289 MB / 330.7 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches