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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 68.3 kB / 306.4 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 50.52 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002861/0.1077, allocations: 1.671 MB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000897/0.1086, allocations: 0.4949 MB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.17e-05/0.1087, allocations: 0 / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.42e-05/0.1088, allocations: 7.922 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.1089, allocations: 19.92 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.1091, allocations: 43.95 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.227e-05/0.1092, allocations: 67.72 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.745e-05/0.1093, allocations: 11.98 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.1094, allocations: 35.89 kB / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.346e-05/0.1095, allocations: 23.86 kB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.1095, allocations: 4 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.715e-05/0.1096, allocations: 15.98 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.1096, allocations: 11.92 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.101e-05/0.1097, allocations: 31.8 kB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.1098, allocations: 59.78 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1098, allocations: 4 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1098, allocations: 0 / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1098, allocations: 3.938 kB / 359.4 MB, free: 11.66 MB / 302.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.0004406/0.1102, allocations: 379.5 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1103, allocations: 8.031 kB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.538e-05/0.1103, allocations: 42.73 kB / 359.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.1105, allocations: 24.83 kB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.1107, allocations: 176.3 kB / 360 MB, free: 10.95 MB / 302.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.000138/0.1108, allocations: 42.19 kB / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.1109, allocations: 4.375 kB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1112, allocations: 180.8 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.1112, allocations: 0 / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.1112, allocations: 0 / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1112, allocations: 4 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.1114, allocations: 31.97 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.1116, allocations: 186.4 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.1118, allocations: 178.3 kB / 360.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.748e-05/0.1119, allocations: 37.7 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.112, allocations: 3.938 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.112, allocations: 38.5 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 3.627e-06/0.112, allocations: 4 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003153/0.1123, allocations: 109.6 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1124, allocations: 89.03 kB / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.1125, allocations: 124.1 kB / 361 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1125, allocations: 29.7 kB / 361 MB, free: 9.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.1126, allocations: 92.12 kB / 361.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.1126, allocations: 7.906 kB / 361.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.1127, allocations: 25.84 kB / 361.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.1128, allocations: 318.8 kB / 361.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.74e-05/0.1128, allocations: 11.98 kB / 361.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.479e-05/0.1129, allocations: 58.25 kB / 361.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.113, allocations: 81.88 kB / 361.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.113, allocations: 4 kB / 361.6 MB, free: 9.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001664/0.1132, allocations: 105.4 kB / 361.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.1132, allocations: 4.188 kB / 361.7 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1132, allocations: 4 kB / 361.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.1132, allocations: 3.938 kB / 361.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.307e-05/0.1133, allocations: 19.92 kB / 361.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1133, allocations: 4 kB / 361.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.944e-05/0.1134, allocations: 12.2 kB / 361.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1134, allocations: 11.98 kB / 361.8 MB, free: 8.922 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 7.27e-05/0.1135, allocations: 121.8 kB / 361.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1136, allocations: 77.47 kB / 362 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.1136, allocations: 16.36 kB / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1136, allocations: 0 / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1136, allocations: 0 / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1137, allocations: 0 / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.1138, allocations: 181.6 kB / 362.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1138, allocations: 3.938 kB / 362.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.078e-05/0.1139, allocations: 15.98 kB / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1139, allocations: 0 / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.1139, allocations: 4 kB / 362.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1139, allocations: 0 / 362.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1139, allocations: 0 / 362.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.1141, allocations: 121.8 kB / 362.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-05/0.1142, allocations: 104.9 kB / 362.4 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.1142, allocations: 4 kB / 362.4 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.34e-05/0.1143, allocations: 4 kB / 362.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.1143, allocations: 4 kB / 362.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.1143, allocations: 3.984 kB / 362.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.399e-05/0.1144, allocations: 99.27 kB / 362.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1144, allocations: 0 / 362.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001984/0.1146, allocations: 12 kB / 362.5 MB, free: 8.059 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.0005312/0.1151, allocations: 0.7027 MB / 363.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.1153, allocations: 55.91 kB / 363.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.1153, allocations: 4.5 kB / 363.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.056e-05/0.1153, allocations: 8 kB / 363.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.1159, allocations: 0.718 MB / 364 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.1171, allocations: 1.429 MB / 365.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.1173, allocations: 0.6898 MB / 366.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.004e-05/0.1174, allocations: 8 kB / 366.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.1174, allocations: 23.42 kB / 366.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1174, allocations: 0 / 366.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.217/1.334, allocations: 1.761 MB / 367.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/1.335, allocations: 210.8 kB / 368.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/3.287, allocations: 0 / 368.1 MB, free: 2.32 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches