Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.002392/0.002391, allocations: 174.3 kB / 8.19 MB, free: 2.184 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.718/1.718, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001293/0.001293, allocations: 82.06 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.09532/0.09532, allocations: 12.59 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.748e-06/9.768e-06, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08251/0.08254, allocations: 50.36 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.3622, allocations: 76.79 MB / 0.4937 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.3625, allocations: 73.41 kB / 0.4937 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003147/0.3657, allocations: 0.679 MB / 0.4944 GB, free: 11.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.3657, allocations: 7.75 kB / 0.4944 GB, free: 11.79 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.0002768/0.366, allocations: 333.4 kB / 0.4947 GB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.366, allocations: 8.188 kB / 0.4947 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.3661, allocations: 11.75 kB / 0.4948 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.3663, allocations: 185.6 kB / 0.4949 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.3663, allocations: 3.984 kB / 0.4949 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.3663, allocations: 7.812 kB / 0.4949 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.772e-05/0.3664, allocations: 7.812 kB / 0.495 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000167/0.3666, allocations: 84.03 kB / 0.495 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3666, allocations: 3.938 kB / 0.495 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.3666, allocations: 4 kB / 0.495 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.3667, allocations: 0 / 0.495 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002744/0.3669, allocations: 235.5 kB / 0.4953 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.365e-05/0.367, allocations: 32.97 kB / 0.4953 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.851e-05/0.367, allocations: 21.38 kB / 0.4953 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.3671, allocations: 3.938 kB / 0.4953 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.3671, allocations: 39.66 kB / 0.4954 GB, free: 10.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.3671, allocations: 0 / 0.4954 GB, free: 10.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001533/0.3673, allocations: 39.25 kB / 0.4954 GB, free: 10.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.3673, allocations: 88.67 kB / 0.4955 GB, free: 10.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.3674, allocations: 117 kB / 0.4956 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.557e-06/0.3674, allocations: 25.7 kB / 0.4956 GB, free: 10.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.3675, allocations: 154.4 kB / 0.4958 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.3675, allocations: 0 / 0.4958 GB, free: 10.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.3675, allocations: 0 / 0.4958 GB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.357e-05/0.3676, allocations: 310.8 kB / 0.4961 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.33e-05/0.3676, allocations: 3.938 kB / 0.4961 GB, free: 10.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.847e-05/0.3676, allocations: 19.3 kB / 0.4961 GB, free: 10.05 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.746e-05/0.3677, allocations: 3.844 kB / 0.4961 GB, free: 10.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3677, allocations: 0 / 0.4961 GB, free: 10.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.217e-05/0.3678, allocations: 47.23 kB / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.3678, allocations: 6.031 kB / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3678, allocations: 0 / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3678, allocations: 3.844 kB / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.596e-05/0.3678, allocations: 0 / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3679, allocations: 5.953 kB / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.685e-05/0.3679, allocations: 0 / 0.4961 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.3679, allocations: 3.844 kB / 0.4962 GB, free: 10.01 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 4.163e-05/0.368, allocations: 25.7 kB / 0.4962 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.3681, allocations: 43.17 kB / 0.4962 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.796e-05/0.3681, allocations: 7.406 kB / 0.4962 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3681, allocations: 5.25 kB / 0.4962 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3681, allocations: 0 / 0.4962 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3682, allocations: 4.031 kB / 0.4962 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.3683, allocations: 142.6 kB / 0.4964 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3683, allocations: 1.875 kB / 0.4964 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.205e-06/0.3683, allocations: 7.875 kB / 0.4964 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3684, allocations: 3.844 kB / 0.4964 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.3684, allocations: 0 / 0.4964 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3684, allocations: 0 / 0.4964 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3684, allocations: 0 / 0.4964 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.453e-05/0.3685, allocations: 160.7 kB / 0.4965 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.3686, allocations: 88.42 kB / 0.4966 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.3686, allocations: 0 / 0.4966 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.529e-05/0.3687, allocations: 3.844 kB / 0.4966 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.3687, allocations: 1.453 kB / 0.4966 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.3687, allocations: 0 / 0.4966 GB, free: 9.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.023e-05/0.3688, allocations: 105.3 kB / 0.4967 GB, free: 9.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002597/0.3691, allocations: 11.78 kB / 0.4967 GB, free: 9.422 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.447e-05/0.3692, allocations: 94.56 kB / 0.4968 GB, free: 9.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.032e-05/0.3693, allocations: 17.14 kB / 0.4968 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3693, allocations: 0 / 0.4968 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.3693, allocations: 0 / 0.4968 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.3696, allocations: 14.41 kB / 0.4969 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.3699, allocations: 114.7 kB / 0.497 GB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.3701, allocations: 0.7041 MB / 0.4977 GB, free: 8.496 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3701, allocations: 0 / 0.4977 GB, free: 8.496 MB / 330.7 MB Notification: Performance of Templates: time 0.002218/0.3723, allocations: 0.6116 MB / 0.4982 GB, free: 8.469 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches