Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [: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 trunk/package.mo): time 0.001025/0.001025, allocations: 200.1 kB / 8.536 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009005/0.0009006, allocations: 94.47 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.217e-06/9.247e-06, allocations: 4 kB / 343.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 51.48 MB / 394.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3757, allocations: 77.19 MB / 471.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.3759, allocations: 76.81 kB / 471.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003947/0.3798, allocations: 1.191 MB / 473.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3799, allocations: 4 kB / 473.1 MB, free: 13.55 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000334/0.3802, allocations: 358.2 kB / 473.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3803, allocations: 8.031 kB / 473.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.3805, allocations: 30.61 kB / 473.5 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.3807, allocations: 181.4 kB / 473.7 MB, free: 12.93 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.3808, allocations: 35.44 kB / 473.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.3808, allocations: 4 kB / 473.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.964e-05/0.3809, allocations: 35.69 kB / 473.7 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.3812, allocations: 144 kB / 473.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.3812, allocations: 0.75 kB / 473.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3812, allocations: 0 / 473.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3812, allocations: 3.906 kB / 473.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.3813, allocations: 159 kB / 474 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.3815, allocations: 155.5 kB / 474.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.017e-05/0.3816, allocations: 29.34 kB / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.3816, allocations: 4 kB / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.3816, allocations: 32.69 kB / 474.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3816, allocations: 3.094 kB / 474.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001645/0.3818, allocations: 73.56 kB / 474.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.3818, allocations: 91.58 kB / 474.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.191e-05/0.3819, allocations: 107.5 kB / 474.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.3819, allocations: 29.7 kB / 474.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.434e-05/0.382, allocations: 83.38 kB / 474.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.382, allocations: 3.25 kB / 474.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.382, allocations: 0 / 474.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.142e-05/0.382, allocations: 325.5 kB / 474.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.072e-05/0.3821, allocations: 7.312 kB / 475 MB, free: 11.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.267e-05/0.3821, allocations: 60.12 kB / 475 MB, free: 11.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.908e-05/0.3821, allocations: 19.44 kB / 475 MB, free: 11.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3822, allocations: 0 / 475 MB, free: 11.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001039/0.3823, allocations: 82.8 kB / 475.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3823, allocations: 8 kB / 475.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3823, allocations: 3.828 kB / 475.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3823, allocations: 4 kB / 475.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.188e-05/0.3824, allocations: 14.62 kB / 475.1 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.3824, allocations: 0 / 475.1 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.542e-05/0.3825, allocations: 19.34 kB / 475.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.3825, allocations: 7.906 kB / 475.2 MB, free: 11.42 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.96e-05/0.3826, allocations: 104.9 kB / 475.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.123e-05/0.3826, allocations: 65.31 kB / 475.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.3827, allocations: 11.88 kB / 475.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3827, allocations: 0.5625 kB / 475.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3827, allocations: 4 kB / 475.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3827, allocations: 3.281 kB / 475.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.387e-05/0.3828, allocations: 155 kB / 475.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3828, allocations: 0 / 475.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.571e-05/0.3829, allocations: 15.41 kB / 475.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3829, allocations: 6.422 kB / 475.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.3829, allocations: 4 kB / 475.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3829, allocations: 4.203 kB / 475.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3829, allocations: 0 / 475.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001191/0.383, allocations: 120 kB / 475.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.3831, allocations: 88.14 kB / 475.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.3831, allocations: 3.906 kB / 475.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.3832, allocations: 10.36 kB / 475.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.3832, allocations: 4 kB / 475.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.3833, allocations: 0 / 475.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.167e-05/0.3833, allocations: 102 kB / 475.9 MB, free: 10.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001959/0.3835, allocations: 12 kB / 475.9 MB, free: 10.72 MB / 346.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 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.463e-05/0.3836, allocations: 99.19 kB / 476 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.821e-05/0.3837, allocations: 46.44 kB / 476 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3837, allocations: 0 / 476 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.293e-05/0.3837, allocations: 0 / 476 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.3841, allocations: 0.7181 MB / 476.7 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002537/0.3844, allocations: 96.5 kB / 476.8 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.3845, allocations: 0.709 MB / 477.5 MB, free: 9.039 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3845, allocations: 0 / 477.5 MB, free: 9.039 MB / 346.7 MB Notification: Performance of Templates: time 0.002387/0.3869, allocations: 0.6984 MB / 478.2 MB, free: 8.652 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches