Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001127, allocations: 115.3 kB / 17.29 MB, free: 6.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 197.3 kB / 18.21 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001079, allocations: 54.94 kB / 300.8 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1256, allocations: 49.44 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004045/0.1297, allocations: 1.643 MB / 351.9 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008345/0.1306, allocations: 443 kB / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.54e-05/0.1307, allocations: 0 / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.412e-05/0.1308, allocations: 3.938 kB / 352.3 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.131, allocations: 11.92 kB / 352.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.1312, allocations: 46.14 kB / 352.4 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.1313, allocations: 67.78 kB / 352.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1315, allocations: 11.98 kB / 352.5 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.1316, allocations: 31.91 kB / 352.5 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.642e-05/0.1317, allocations: 35.84 kB / 352.5 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.1317, allocations: 4 kB / 352.5 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.956e-05/0.1318, allocations: 4 kB / 352.5 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.154e-05/0.1318, allocations: 15.92 kB / 352.5 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.254e-05/0.1319, allocations: 35.78 kB / 352.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.132, allocations: 39.94 kB / 352.6 MB, free: 2.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.132, allocations: 3.938 kB / 352.6 MB, free: 2.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.132, allocations: 0 / 352.6 MB, free: 2.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.132, allocations: 7.938 kB / 352.6 MB, free: 2.344 MB / 286.1 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.0006904/0.1327, allocations: 377.9 kB / 353 MB, free: 1.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.1328, allocations: 12.03 kB / 353 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/0.1328, allocations: 8.844 kB / 353 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.1331, allocations: 188.2 kB / 353.2 MB, free: 1.688 MB / 286.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.1333, allocations: 38.25 kB / 353.2 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.1333, allocations: 8.375 kB / 353.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.1338, allocations: 165 kB / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1338, allocations: 0 / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.1338, allocations: 0 / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1338, allocations: 0 / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.134, allocations: 39.97 kB / 353.4 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002499/0.1342, allocations: 178.5 kB / 353.6 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.1346, allocations: 170.4 kB / 353.8 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.1347, allocations: 45.64 kB / 353.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1347, allocations: 0 / 353.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1347, allocations: 42.44 kB / 353.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.1348, allocations: 0 / 353.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003701/0.1351, allocations: 109.8 kB / 354 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.1352, allocations: 89.22 kB / 354.1 MB, free: 0.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1353, allocations: 125.8 kB / 354.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1354, allocations: 29.7 kB / 354.2 MB, free: 0.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.1354, allocations: 88.12 kB / 354.3 MB, free: 420 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.1355, allocations: 11.91 kB / 354.3 MB, free: 408 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.1355, allocations: 17.72 kB / 354.3 MB, free: 384 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1357, allocations: 322.8 kB / 354.7 MB, free: 52 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.1357, allocations: 15.98 kB / 354.7 MB, free: 36 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.1358, allocations: 65.94 kB / 354.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.136, allocations: 77.88 kB / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.136, allocations: 0 / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001746/0.1362, allocations: 101.4 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1362, allocations: 12.22 kB / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1362, allocations: 0 / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1362, allocations: 4 kB / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.23e-05/0.1363, allocations: 19.92 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.1364, allocations: 0 / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.378e-05/0.1364, allocations: 11.94 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.1364, allocations: 7.984 kB / 355 MB, free: 15.69 MB / 302.1 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 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001779/0.1366, allocations: 113.8 kB / 355.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.1368, allocations: 81.47 kB / 355.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.1368, allocations: 12.38 kB / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1368, allocations: 0 / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.1368, allocations: 7.984 kB / 355.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1368, allocations: 0 / 355.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.137, allocations: 177.5 kB / 355.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.137, allocations: 0 / 355.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.1371, allocations: 19.92 kB / 355.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1371, allocations: 4 kB / 355.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.1371, allocations: 3.984 kB / 355.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1371, allocations: 0 / 355.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1371, allocations: 0 / 355.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.1374, allocations: 125.9 kB / 355.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.1375, allocations: 96.94 kB / 355.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.1375, allocations: 4 kB / 355.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.808e-05/0.1376, allocations: 8.125 kB / 355.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.1376, allocations: 4 kB / 355.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.1376, allocations: 11.98 kB / 355.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.086e-05/0.1377, allocations: 94.27 kB / 355.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1377, allocations: 0 / 355.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.1379, allocations: 16 kB / 355.7 MB, free: 14.82 MB / 302.1 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 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001432/0.1381, allocations: 99.19 kB / 355.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002181/0.1383, allocations: 59.84 kB / 355.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1383, allocations: 448 / 355.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.93e-05/0.1384, allocations: 16 kB / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.1391, allocations: 0.7259 MB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004285/0.1396, allocations: 225.1 kB / 356.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1399, allocations: 0.6924 MB / 357.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.1399, allocations: 11.44 kB / 357.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.14, allocations: 0 / 357.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of Templates: time 0.002666/0.1426, allocations: 0.946 MB / 358.5 MB, free: 11.96 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches