Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") [: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.001656/0.001656, allocations: 180.8 kB / 8.196 MB, free: 2.172 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.894/1.894, 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.001198/0.001198, allocations: 96.08 kB / 261.8 MB, free: 13.63 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.09843/0.09843, allocations: 12.6 MB / 322.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.053e-05/1.063e-05, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08777, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2831/0.3709, allocations: 76.58 MB / 0.4935 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.3712, allocations: 72.23 kB / 0.4936 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003022/0.3743, allocations: 0.5483 MB / 0.4941 GB, free: 11.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.3743, allocations: 9.359 kB / 0.4941 GB, free: 11.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003274/0.3746, allocations: 328.9 kB / 0.4944 GB, free: 11.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3747, allocations: 11.5 kB / 0.4944 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.3748, allocations: 7.844 kB / 0.4944 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.3749, allocations: 179.7 kB / 0.4946 GB, free: 11.17 MB / 330.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3751, allocations: 35.64 kB / 0.4946 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.3751, allocations: 11.72 kB / 0.4946 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.127e-05/0.3752, allocations: 11 kB / 0.4947 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.3755, allocations: 117.8 kB / 0.4948 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3755, allocations: 0 / 0.4948 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3755, allocations: 0 / 0.4948 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.3755, allocations: 0 / 0.4948 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001116/0.3757, allocations: 140.9 kB / 0.4949 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.3758, allocations: 130.1 kB / 0.495 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.285e-05/0.3759, allocations: 20.55 kB / 0.495 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.3759, allocations: 0 / 0.495 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.3759, allocations: 38.34 kB / 0.4951 GB, free: 10.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/0.376, allocations: 0 / 0.4951 GB, free: 10.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001723/0.3761, allocations: 56.02 kB / 0.4951 GB, free: 10.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.3762, allocations: 59.41 kB / 0.4952 GB, free: 10.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.991e-05/0.3763, allocations: 99.12 kB / 0.4953 GB, free: 10.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.3763, allocations: 25.7 kB / 0.4953 GB, free: 10.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.3763, allocations: 153.9 kB / 0.4955 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.3763, allocations: 8.984 kB / 0.4955 GB, free: 10.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-06/0.3764, allocations: 0 / 0.4955 GB, free: 10.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.3764, allocations: 312 kB / 0.4958 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.3764, allocations: 7.406 kB / 0.4958 GB, free: 10.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.687e-05/0.3765, allocations: 44.12 kB / 0.4958 GB, free: 10.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.112e-05/0.3765, allocations: 12.55 kB / 0.4958 GB, free: 10 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3765, allocations: 0 / 0.4958 GB, free: 10 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001096/0.3767, allocations: 65.47 kB / 0.4959 GB, free: 9.965 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.3767, allocations: 6.031 kB / 0.4959 GB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3767, allocations: 3.906 kB / 0.4959 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3767, allocations: 3.906 kB / 0.4959 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.387e-05/0.3768, allocations: 3.812 kB / 0.4959 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3768, allocations: 9.672 kB / 0.4959 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.256e-05/0.3768, allocations: 7.781 kB / 0.4959 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.3769, allocations: 3.906 kB / 0.4959 GB, free: 9.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.122e-05/0.3769, allocations: 37.48 kB / 0.496 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.39e-05/0.377, allocations: 54.91 kB / 0.496 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.3771, allocations: 9.516 kB / 0.496 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3771, allocations: 0 / 0.496 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3771, allocations: 0 / 0.496 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3771, allocations: 0 / 0.496 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.3772, allocations: 140.6 kB / 0.4962 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3772, allocations: 0 / 0.4962 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.13e-05/0.3772, allocations: 8.547 kB / 0.4962 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3773, allocations: 96 / 0.4962 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3773, allocations: 12.38 kB / 0.4962 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3773, allocations: 0 / 0.4962 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3773, allocations: 1.078 kB / 0.4962 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001206/0.3774, allocations: 83.27 kB / 0.4963 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.72e-05/0.3775, allocations: 78.25 kB / 0.4963 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3775, allocations: 0.7031 kB / 0.4963 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.327e-05/0.3776, allocations: 8.797 kB / 0.4963 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-06/0.3776, allocations: 3.906 kB / 0.4963 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.3776, allocations: 8.516 kB / 0.4964 GB, free: 9.527 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.123e-05/0.3777, allocations: 83.27 kB / 0.4964 GB, free: 9.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002315/0.3779, allocations: 7.562 kB / 0.4964 GB, free: 9.453 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.936e-05/0.378, allocations: 95.39 kB / 0.4965 GB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.3781, allocations: 30.53 kB / 0.4966 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3781, allocations: 0 / 0.4966 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.3782, allocations: 0 / 0.4966 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.3788, allocations: 0.7142 MB / 0.4973 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002344/0.379, allocations: 95.92 kB / 0.4973 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.3792, allocations: 0.7021 MB / 0.498 GB, free: 7.867 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.3792, allocations: 0 / 0.498 GB, free: 7.867 MB / 330.7 MB Notification: Performance of Templates: time 0.002554/0.3818, allocations: 0.7556 MB / 0.4988 GB, free: 7.824 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches