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.0007768/0.0007768, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008724/0.0008724, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002217, allocations: 4 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08729, allocations: 51.51 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001806/0.08913, allocations: 1.324 MB / 360.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008573/0.09002, allocations: 0.491 MB / 361.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.653e-05/0.0901, allocations: 4 kB / 361.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.09013, allocations: 3.938 kB / 361.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.09026, allocations: 7.922 kB / 361.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.09049, allocations: 55.83 kB / 361.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.0906, allocations: 59.84 kB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.609e-05/0.09069, allocations: 19.95 kB / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.09084, allocations: 31.86 kB / 361.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.0909, allocations: 35.83 kB / 361.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.09093, allocations: 4 kB / 361.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.09097, allocations: 4 kB / 361.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.091, allocations: 23.86 kB / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.695e-05/0.09105, allocations: 45.56 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.09116, allocations: 59.78 kB / 361.5 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.09117, allocations: 0 / 361.5 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.09118, allocations: 4 kB / 361.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.09119, allocations: 3.938 kB / 361.5 MB, free: 10.99 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.0004352/0.09163, allocations: 367.5 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.09168, allocations: 8.031 kB / 361.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.757e-05/0.09172, allocations: 38.75 kB / 361.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.09192, allocations: 24.83 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.09209, allocations: 194.6 kB / 362.1 MB, free: 10.28 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.0001004/0.0922, allocations: 36.48 kB / 362.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.09222, allocations: 8.375 kB / 362.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.09256, allocations: 164.8 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.09257, allocations: 3.938 kB / 362.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.0926, allocations: 12 kB / 362.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.0926, allocations: 0 / 362.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.09273, allocations: 35.97 kB / 362.4 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.0929, allocations: 190.4 kB / 362.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.09315, allocations: 162.4 kB / 362.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.311e-05/0.09325, allocations: 41.7 kB / 362.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.09328, allocations: 15.92 kB / 362.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.0933, allocations: 38.5 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.09331, allocations: 0 / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003102/0.09362, allocations: 117.5 kB / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/0.0937, allocations: 85.11 kB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.736e-05/0.0938, allocations: 130 kB / 363.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.09382, allocations: 25.7 kB / 363.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.09387, allocations: 88.14 kB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.0939, allocations: 11.84 kB / 363.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.09393, allocations: 17.7 kB / 363.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.537e-05/0.09403, allocations: 318.8 kB / 363.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.018e-05/0.09408, allocations: 15.98 kB / 363.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.238e-05/0.09416, allocations: 62 kB / 363.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.09429, allocations: 81.88 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09429, allocations: 0 / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000175/0.09448, allocations: 113.4 kB / 363.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.0945, allocations: 8 kB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.09451, allocations: 0 / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.09452, allocations: 4 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/0.0946, allocations: 15.94 kB / 363.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.09462, allocations: 7.984 kB / 363.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.973e-05/0.09467, allocations: 8 kB / 363.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.09469, allocations: 4.219 kB / 363.9 MB, free: 8.258 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 8.382e-05/0.09478, allocations: 125.7 kB / 364 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.09489, allocations: 73.53 kB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.09494, allocations: 16.55 kB / 364.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.09495, allocations: 3.984 kB / 364.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.09496, allocations: 3.938 kB / 364.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.09496, allocations: 0 / 364.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.09508, allocations: 177.5 kB / 364.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.09509, allocations: 3.938 kB / 364.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.045e-05/0.09516, allocations: 19.98 kB / 364.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.09517, allocations: 0 / 364.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.09519, allocations: 4.312 kB / 364.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.0952, allocations: 7.984 kB / 364.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.0952, allocations: 0 / 364.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.09541, allocations: 125.9 kB / 364.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.09547, allocations: 100.9 kB / 364.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.0955, allocations: 7.938 kB / 364.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-05/0.09557, allocations: 11.98 kB / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.372e-05/0.0956, allocations: 0 / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.288e-06/0.09562, allocations: 4 kB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.129e-05/0.09567, allocations: 98.08 kB / 364.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09568, allocations: 0 / 364.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001993/0.09588, allocations: 12 kB / 364.7 MB, free: 7.375 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.0005182/0.09641, allocations: 0.6991 MB / 365.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.09658, allocations: 63.97 kB / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09659, allocations: 0 / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.824e-05/0.09663, allocations: 11.98 kB / 365.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.09722, allocations: 0.7257 MB / 366.2 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.09851, allocations: 1.441 MB / 367.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.09873, allocations: 0.6975 MB / 368.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.767e-05/0.09876, allocations: 3.984 kB / 368.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.259e-05/0.09881, allocations: 23.44 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09882, allocations: 0 / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01053/0.1094, allocations: 1.696 MB / 370.1 MB, free: 1.953 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.1096, allocations: 210.2 kB / 370.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.718, allocations: 3.938 kB / 370.3 MB, free: 1.695 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