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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 105.3 kB / 17.06 MB, free: 6.016 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.001322/0.001323, allocations: 196 kB / 18 MB, free: 5.094 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 47.88 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3237, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003219/0.327, allocations: 1.586 MB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007801/0.3278, allocations: 440.9 kB / 402.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.3279, allocations: 7.938 kB / 402.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.366e-05/0.3279, allocations: 3.938 kB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.3281, allocations: 15.86 kB / 402.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.3283, allocations: 35.95 kB / 402.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3284, allocations: 71.7 kB / 402.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3285, allocations: 12 kB / 402.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.3287, allocations: 35.91 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.413e-05/0.3287, allocations: 27.84 kB / 402.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.3288, allocations: 8 kB / 402.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.52e-05/0.3288, allocations: 4 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.3288, allocations: 19.92 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.389e-05/0.3289, allocations: 35.78 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.329, allocations: 59.78 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.329, allocations: 0 / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.329, allocations: 0 / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3291, allocations: 0 / 402.6 MB, free: 6.469 MB / 318.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.0005725/0.3296, allocations: 376.9 kB / 403 MB, free: 6.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3297, allocations: 8.031 kB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.3297, allocations: 30.75 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.3298, allocations: 16.84 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.33, allocations: 207.5 kB / 403.2 MB, free: 5.754 MB / 318.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.0001156/0.3302, allocations: 38.25 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.3302, allocations: 4.375 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.3306, allocations: 172.8 kB / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3306, allocations: 0 / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.3306, allocations: 3.938 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3306, allocations: 0 / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.3308, allocations: 35.97 kB / 403.5 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001871/0.331, allocations: 174.5 kB / 403.6 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.3313, allocations: 178.4 kB / 403.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.925e-05/0.3314, allocations: 37.7 kB / 403.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3314, allocations: 3.938 kB / 403.9 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.3315, allocations: 42.48 kB / 403.9 MB, free: 4.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.3315, allocations: 0 / 403.9 MB, free: 4.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003472/0.3318, allocations: 109.6 kB / 404 MB, free: 4.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/0.3319, allocations: 89.05 kB / 404.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.332, allocations: 117.8 kB / 404.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.332, allocations: 33.69 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.591e-05/0.3321, allocations: 88.14 kB / 404.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.3321, allocations: 7.906 kB / 404.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.3322, allocations: 21.7 kB / 404.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3323, allocations: 323 kB / 404.7 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.461e-05/0.3324, allocations: 15.98 kB / 404.7 MB, free: 4.102 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.812e-05/0.3324, allocations: 57.98 kB / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.3326, allocations: 81.88 kB / 404.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3326, allocations: 0 / 404.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001766/0.3328, allocations: 109.6 kB / 404.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3328, allocations: 8 kB / 404.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3328, allocations: 3.938 kB / 404.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.3328, allocations: 4 kB / 404.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.502e-05/0.3329, allocations: 15.94 kB / 405 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3329, allocations: 3.984 kB / 405 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.044e-05/0.333, allocations: 7.984 kB / 405 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.333, allocations: 8.219 kB / 405 MB, free: 3.758 MB / 318.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 9.597e-05/0.3331, allocations: 121.8 kB / 405.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.3332, allocations: 85.72 kB / 405.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.931e-05/0.3333, allocations: 12.36 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3333, allocations: 0 / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.3333, allocations: 8 kB / 405.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.3333, allocations: 0 / 405.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.3335, allocations: 169.6 kB / 405.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.3335, allocations: 3.938 kB / 405.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.722e-05/0.3335, allocations: 11.98 kB / 405.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3336, allocations: 8 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.3336, allocations: 0 / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.3336, allocations: 0 / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3336, allocations: 0 / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.3338, allocations: 125.8 kB / 405.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.662e-05/0.3339, allocations: 92.94 kB / 405.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.334, allocations: 12 kB / 405.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.509e-05/0.334, allocations: 4 kB / 405.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.3341, allocations: 3.984 kB / 405.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3341, allocations: 8 kB / 405.6 MB, free: 3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.577e-05/0.3341, allocations: 91.27 kB / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3341, allocations: 0 / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00021/0.3344, allocations: 16 kB / 405.7 MB, free: 2.895 MB / 318.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.0006403/0.335, allocations: 0.699 MB / 406.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001907/0.3352, allocations: 55.91 kB / 406.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3352, allocations: 0 / 406.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.634e-05/0.3353, allocations: 12.5 kB / 406.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.3359, allocations: 0.7297 MB / 407.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.3373, allocations: 1.394 MB / 408.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.3376, allocations: 0.6924 MB / 409.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.02e-05/0.3376, allocations: 3.984 kB / 409.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.101e-05/0.3377, allocations: 19.44 kB / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3377, allocations: 0 / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.3592, allocations: 1.976 MB / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.84, allocations: 12.56 kB / 411.3 MB, free: 13.21 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > 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