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.001225/0.001225, allocations: 107.1 kB / 17.06 MB, free: 5.98 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.001779/0.001779, allocations: 198.8 kB / 18 MB, free: 5.062 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.364/1.364, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3626, allocations: 49.43 MB / 400.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003939/0.3666, allocations: 1.596 MB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.3677, allocations: 447.2 kB / 402.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.21e-05/0.3678, allocations: 4 kB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.012e-05/0.3679, allocations: 3.938 kB / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.3681, allocations: 15.88 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.3684, allocations: 39.88 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.3686, allocations: 67.78 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3687, allocations: 8 kB / 402.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.3689, allocations: 39.89 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.369, allocations: 35.73 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.369, allocations: 4 kB / 402.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.208e-05/0.369, allocations: 8 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.215e-05/0.3691, allocations: 19.91 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.3692, allocations: 31.8 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.3694, allocations: 58.73 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3694, allocations: 0 / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3694, allocations: 0 / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.3694, allocations: 4 kB / 402.6 MB, free: 6.461 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.0007089/0.3701, allocations: 375.2 kB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3702, allocations: 16.03 kB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.302e-05/0.3702, allocations: 30.75 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.3703, allocations: 8.891 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.3706, allocations: 198.6 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.0001633/0.3708, allocations: 44.59 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.3708, allocations: 4.375 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.3714, allocations: 168.9 kB / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3714, allocations: 0 / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.3715, allocations: 0 / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3715, allocations: 3.938 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.3717, allocations: 35.92 kB / 403.5 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002638/0.3719, allocations: 182.5 kB / 403.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/0.3724, allocations: 174.3 kB / 403.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.3726, allocations: 45.69 kB / 403.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.3726, allocations: 7.922 kB / 403.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.3726, allocations: 34.56 kB / 403.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.3726, allocations: 0 / 403.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004955/0.3731, allocations: 113.5 kB / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.117e-05/0.3733, allocations: 85.11 kB / 404.1 MB, free: 4.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.3734, allocations: 121.8 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3735, allocations: 25.7 kB / 404.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.3735, allocations: 92.14 kB / 404.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.3736, allocations: 12.02 kB / 404.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/0.3736, allocations: 25.7 kB / 404.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3738, allocations: 318.8 kB / 404.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.187e-05/0.3739, allocations: 16 kB / 404.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.374, allocations: 57.94 kB / 404.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.3742, allocations: 77.94 kB / 404.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3743, allocations: 4 kB / 404.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002884/0.3746, allocations: 109.4 kB / 404.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3746, allocations: 4 kB / 404.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3746, allocations: 4.25 kB / 404.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.3746, allocations: 0 / 404.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.3748, allocations: 19.98 kB / 405 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.3748, allocations: 8.219 kB / 405 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.602e-05/0.3749, allocations: 4 kB / 405 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3749, allocations: 8 kB / 405 MB, free: 3.75 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 0.0001385/0.3751, allocations: 117.8 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.3753, allocations: 77.56 kB / 405.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.3753, allocations: 16.31 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3754, allocations: 0 / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3754, allocations: 0 / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3754, allocations: 4 kB / 405.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.3756, allocations: 177.6 kB / 405.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.3756, allocations: 3.938 kB / 405.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.3757, allocations: 15.92 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3757, allocations: 0 / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3758, allocations: 8 kB / 405.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3758, allocations: 3.984 kB / 405.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3758, allocations: 0 / 405.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/0.3761, allocations: 114 kB / 405.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.3762, allocations: 92.98 kB / 405.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.3762, allocations: 8 kB / 405.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.3763, allocations: 3.984 kB / 405.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.3764, allocations: 4.188 kB / 405.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3764, allocations: 4 kB / 405.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.508e-05/0.3765, allocations: 101.5 kB / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3765, allocations: 0 / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.3769, allocations: 12 kB / 405.7 MB, free: 2.898 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.0008175/0.3777, allocations: 0.7067 MB / 406.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.378, allocations: 60.47 kB / 406.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3781, allocations: 4 kB / 406.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.787e-05/0.3781, allocations: 11.98 kB / 406.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009527/0.3791, allocations: 0.7219 MB / 407.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.381, 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.0002956/0.3814, allocations: 0.6962 MB / 409.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.423e-05/0.3814, allocations: 3.984 kB / 409.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.3815, allocations: 27.42 kB / 409.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3815, allocations: 0 / 409.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.4025, allocations: 1.934 MB / 411.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/7.856, allocations: 0.625 kB / 411.3 MB, free: 13.25 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