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.001432/0.001432, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001299/0.001299, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 43.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2847, allocations: 49.45 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003013/0.2877, allocations: 1.594 MB / 401.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000865/0.2886, allocations: 441.2 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.092e-05/0.2887, allocations: 4 kB / 402.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.739e-05/0.2888, allocations: 3.938 kB / 402.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.2889, allocations: 19.86 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.2892, allocations: 43.88 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.2893, allocations: 63.78 kB / 402.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.2894, allocations: 12 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2895, allocations: 31.91 kB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.587e-05/0.2896, allocations: 27.84 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2896, allocations: 8 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.2897, allocations: 4 kB / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.805e-05/0.2897, allocations: 19.92 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.285e-05/0.2897, allocations: 35.78 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.2899, allocations: 66.67 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2899, allocations: 0 / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2899, allocations: 0 / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2899, allocations: 0 / 402.6 MB, free: 6.43 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.0006937/0.2906, allocations: 379.2 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2907, allocations: 8.031 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.815e-05/0.2907, allocations: 30.75 kB / 403 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.168e-05/0.2907, allocations: 12.89 kB / 403 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.291, allocations: 202.2 kB / 403.2 MB, free: 5.719 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.0001154/0.2912, allocations: 38.25 kB / 403.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.2912, allocations: 4.375 kB / 403.3 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.2916, allocations: 168.8 kB / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2916, allocations: 0 / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2916, allocations: 0 / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2916, allocations: 3.938 kB / 403.4 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.2918, allocations: 35.97 kB / 403.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.292, allocations: 178.5 kB / 403.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.2924, allocations: 178.3 kB / 403.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.2925, allocations: 41.7 kB / 403.9 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.2925, allocations: 3.938 kB / 403.9 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.2926, allocations: 42.48 kB / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2926, allocations: 0 / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003475/0.2929, allocations: 113.7 kB / 404 MB, free: 4.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.2931, allocations: 89.17 kB / 404.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.2932, allocations: 121.8 kB / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.2932, allocations: 29.7 kB / 404.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.633e-05/0.2933, allocations: 88.14 kB / 404.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.2933, allocations: 7.953 kB / 404.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.2934, allocations: 21.83 kB / 404.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2935, allocations: 322.8 kB / 404.7 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.488e-05/0.2936, allocations: 15.98 kB / 404.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.419e-05/0.2937, allocations: 54 kB / 404.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.2938, allocations: 81.88 kB / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2938, allocations: 0 / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000194/0.294, allocations: 109.6 kB / 404.9 MB, free: 3.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.294, allocations: 8 kB / 404.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.294, allocations: 3.938 kB / 404.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2941, allocations: 4 kB / 404.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.195e-05/0.2942, allocations: 15.94 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2942, allocations: 3.984 kB / 405 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.006e-05/0.2942, allocations: 4 kB / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.2942, allocations: 8.219 kB / 405 MB, free: 3.723 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.722e-05/0.2943, allocations: 117.8 kB / 405.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.2945, allocations: 77.52 kB / 405.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.2945, allocations: 20.3 kB / 405.2 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2945, allocations: 0 / 405.2 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2946, allocations: 4 kB / 405.2 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2946, allocations: 0 / 405.2 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.2947, allocations: 173.6 kB / 405.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2947, allocations: 3.938 kB / 405.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.296e-05/0.2948, allocations: 15.98 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2948, allocations: 4 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.2948, allocations: 0 / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2948, allocations: 0 / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2948, allocations: 0 / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.2951, allocations: 125.9 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.2952, allocations: 92.98 kB / 405.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.2953, allocations: 12 kB / 405.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.685e-05/0.2953, allocations: 8.125 kB / 405.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.914e-05/0.2954, allocations: 3.984 kB / 405.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.2954, allocations: 4 kB / 405.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.242e-05/0.2955, allocations: 97.64 kB / 405.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2955, allocations: 0 / 405.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002012/0.2957, allocations: 12 kB / 405.7 MB, free: 2.863 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.0007766/0.2965, allocations: 0.706 MB / 406.4 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.2967, allocations: 59.91 kB / 406.5 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2967, allocations: 0.5 kB / 406.5 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.2967, allocations: 8 kB / 406.5 MB, free: 2.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007909/0.2975, allocations: 0.7335 MB / 407.2 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.2991, allocations: 1.388 MB / 408.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.2995, allocations: 0.6924 MB / 409.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.469e-05/0.2996, allocations: 7.984 kB / 409.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/0.2996, allocations: 15.44 kB / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2996, allocations: 0 / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.3219, allocations: 1.94 MB / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.806/8.128, allocations: 19.59 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period