Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001566/0.001566, allocations: 175.8 kB / 8.189 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.2 MB / 213.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001295/0.001295, allocations: 99.08 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1053/0.1053, allocations: 12.58 MB / 322.3 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.077e-06/9.258e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.09147, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2957/0.3872, allocations: 77.4 MB / 0.4943 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.3876, allocations: 75.28 kB / 0.4944 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005021/0.3926, allocations: 1.032 MB / 0.4954 GB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3927, allocations: 7.812 kB / 0.4954 GB, free: 11.55 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.0003473/0.393, allocations: 341 kB / 0.4957 GB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3931, allocations: 11.25 kB / 0.4957 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.3931, allocations: 5.359 kB / 0.4957 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.3933, allocations: 198.9 kB / 0.4959 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3934, allocations: 5.312 kB / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.3934, allocations: 7.781 kB / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.207e-05/0.3935, allocations: 11.31 kB / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3937, allocations: 81.22 kB / 0.496 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3937, allocations: 0 / 0.496 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.3937, allocations: 0 / 0.496 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3937, allocations: 0 / 0.496 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.3941, allocations: 255.8 kB / 0.4962 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.688e-05/0.3942, allocations: 38.33 kB / 0.4963 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.301e-05/0.3942, allocations: 17.28 kB / 0.4963 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.3942, allocations: 3.875 kB / 0.4963 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.3943, allocations: 32.02 kB / 0.4963 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.3943, allocations: 0 / 0.4963 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001787/0.3945, allocations: 50.05 kB / 0.4964 GB, free: 10.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.3945, allocations: 78.7 kB / 0.4965 GB, free: 10.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3946, allocations: 123.8 kB / 0.4966 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.3947, allocations: 25.7 kB / 0.4966 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.3947, allocations: 150.6 kB / 0.4967 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.3947, allocations: 3.906 kB / 0.4967 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.3948, allocations: 3.875 kB / 0.4967 GB, free: 10.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.3948, allocations: 312.5 kB / 0.497 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.843e-05/0.3948, allocations: 3.75 kB / 0.4971 GB, free: 9.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.542e-05/0.3949, allocations: 17.53 kB / 0.4971 GB, free: 9.809 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.51e-05/0.3949, allocations: 9.25 kB / 0.4971 GB, free: 9.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3949, allocations: 0 / 0.4971 GB, free: 9.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.715e-05/0.395, allocations: 38.94 kB / 0.4971 GB, free: 9.773 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.395, allocations: 7.625 kB / 0.4971 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3951, allocations: 0 / 0.4971 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3951, allocations: 5.312 kB / 0.4971 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.3952, allocations: 5.422 kB / 0.4971 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3952, allocations: 8 kB / 0.4971 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.993e-05/0.3953, allocations: 1.5 kB / 0.4971 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.3953, allocations: 3.969 kB / 0.4971 GB, free: 9.766 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: 0 () * 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 4.16e-05/0.3953, allocations: 25.7 kB / 0.4972 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.01e-05/0.3954, allocations: 46.22 kB / 0.4972 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.474e-05/0.3955, allocations: 12.97 kB / 0.4972 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3955, allocations: 3.875 kB / 0.4972 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3955, allocations: 4.031 kB / 0.4972 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3955, allocations: 0 / 0.4972 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.3957, allocations: 148 kB / 0.4974 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3957, allocations: 0 / 0.4974 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-05/0.3958, allocations: 9.547 kB / 0.4974 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3958, allocations: 0 / 0.4974 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3958, allocations: 3.938 kB / 0.4974 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3958, allocations: 0 / 0.4974 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3958, allocations: 5.281 kB / 0.4974 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000122/0.3959, allocations: 167.8 kB / 0.4976 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.439e-05/0.396, allocations: 92.59 kB / 0.4976 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.3961, allocations: 0 / 0.4976 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.3962, allocations: 5.609 kB / 0.4976 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.3962, allocations: 0 / 0.4976 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3962, allocations: 7.844 kB / 0.4977 GB, free: 9.242 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.726e-05/0.3963, allocations: 105.1 kB / 0.4978 GB, free: 9.168 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000313/0.3966, allocations: 3.906 kB / 0.4978 GB, free: 9.168 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: 0 () * 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 9.906e-05/0.3967, allocations: 96.03 kB / 0.4978 GB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.622e-05/0.3968, allocations: 11.47 kB / 0.4979 GB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3969, allocations: 0 / 0.4979 GB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.41e-05/0.3969, allocations: 9.312 kB / 0.4979 GB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.3972, allocations: 13.3 kB / 0.4979 GB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/0.3975, allocations: 115.4 kB / 0.498 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.3977, allocations: 0.7052 MB / 0.4987 GB, free: 8.254 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.3978, allocations: 0 / 0.4987 GB, free: 8.254 MB / 330.7 MB Notification: Performance of Templates: time 0.002476/0.4002, allocations: 0.6659 MB / 0.4993 GB, free: 8.223 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches