Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") [: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.001148/0.001148, allocations: 182.5 kB / 7.842 MB, free: 2.496 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.344/1.344, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0009458/0.0009457, allocations: 91.81 kB / 261.5 MB, free: 13.53 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.07304/0.07304, allocations: 12.6 MB / 322 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.384e-06/7.424e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.09978, allocations: 50.38 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3082/0.4081, allocations: 76.91 MB / 0.4938 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.4083, allocations: 77.3 kB / 0.4939 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002374/0.4107, allocations: 0.7966 MB / 0.4947 GB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.4107, allocations: 0 / 0.4947 GB, free: 11.64 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002476/0.411, allocations: 350 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.411, allocations: 7.688 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.4111, allocations: 7.781 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.4112, allocations: 188.4 kB / 0.4952 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.4113, allocations: 7.75 kB / 0.4952 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.4113, allocations: 0 / 0.4952 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.756e-05/0.4113, allocations: 23.81 kB / 0.4952 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.4115, allocations: 96.89 kB / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4115, allocations: 0 / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.4116, allocations: 4 kB / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.4116, allocations: 0 / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002656/0.4118, allocations: 246 kB / 0.4956 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.412, allocations: 138.5 kB / 0.4957 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.894e-05/0.412, allocations: 22.8 kB / 0.4957 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.4121, allocations: 0 / 0.4957 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.4121, allocations: 34.77 kB / 0.4958 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.4121, allocations: 0 / 0.4958 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001402/0.4122, allocations: 54.22 kB / 0.4958 GB, free: 10.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.4123, allocations: 82.83 kB / 0.4959 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.4124, allocations: 122.7 kB / 0.496 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.4124, allocations: 29.64 kB / 0.496 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.4124, allocations: 89.06 kB / 0.4961 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.266e-06/0.4124, allocations: 3.938 kB / 0.4961 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.4124, allocations: 3.938 kB / 0.4961 GB, free: 10.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.828e-05/0.4125, allocations: 315.2 kB / 0.4964 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.4125, allocations: 7.844 kB / 0.4964 GB, free: 9.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.4125, allocations: 28.3 kB / 0.4965 GB, free: 9.844 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.624e-05/0.4125, allocations: 5 kB / 0.4965 GB, free: 9.844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4126, allocations: 0 / 0.4965 GB, free: 9.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.597e-05/0.4126, allocations: 59.16 kB / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.4127, allocations: 7.844 kB / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.4127, allocations: 0 / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.4127, allocations: 0 / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.087e-05/0.4127, allocations: 16.72 kB / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.4128, allocations: 0 / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.619e-05/0.4128, allocations: 4.641 kB / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-06/0.4128, allocations: 0 / 0.4965 GB, free: 9.797 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.173e-05/0.4129, allocations: 112.8 kB / 0.4967 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.4129, allocations: 51.64 kB / 0.4967 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.413, allocations: 8.172 kB / 0.4967 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.413, allocations: 4.469 kB / 0.4967 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.413, allocations: 0 / 0.4967 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.413, allocations: 0 / 0.4967 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.4131, allocations: 145 kB / 0.4969 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.4131, allocations: 0 / 0.4969 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.77e-05/0.4132, allocations: 9 kB / 0.4969 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4132, allocations: 11.78 kB / 0.4969 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.4132, allocations: 0.9375 kB / 0.4969 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4132, allocations: 0 / 0.4969 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4132, allocations: 0 / 0.4969 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.352e-05/0.4133, allocations: 164.2 kB / 0.497 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/0.4133, allocations: 96.05 kB / 0.4971 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.4134, allocations: 5.453 kB / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.734e-05/0.4134, allocations: 4.344 kB / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.4135, allocations: 5.391 kB / 0.4971 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.4135, allocations: 240 / 0.4971 GB, free: 9.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.885e-05/0.4135, allocations: 103.4 kB / 0.4972 GB, free: 9.133 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.4137, allocations: 3.875 kB / 0.4972 GB, free: 9.133 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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.758e-05/0.4138, allocations: 100.1 kB / 0.4973 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.389e-05/0.4139, allocations: 22.44 kB / 0.4974 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4139, allocations: 0 / 0.4974 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.061e-05/0.4139, allocations: 7.812 kB / 0.4974 GB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.4141, allocations: 20.55 kB / 0.4974 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.4143, allocations: 101.8 kB / 0.4975 GB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.4145, allocations: 0.701 MB / 0.4982 GB, free: 8.227 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4145, allocations: 4.125 kB / 0.4982 GB, free: 8.227 MB / 330.7 MB Notification: Performance of Templates: time 0.002251/0.4168, allocations: 481.5 kB / 0.4986 GB, free: 8.172 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches