Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009406/0.0009406, allocations: 83.7 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 173.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9102/0.9102, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.86e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002747/0.002766, allocations: 1.609 MB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000859/0.003625, allocations: 486.7 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.598e-05/0.003701, allocations: 3.938 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.395e-05/0.003735, allocations: 3.938 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.003933, allocations: 19.8 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.004208, allocations: 55.81 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.004311, allocations: 79.77 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.811e-05/0.0044, allocations: 4 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.004539, allocations: 55.75 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.287e-05/0.004581, allocations: 23.97 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.0046, allocations: 4 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.776e-05/0.004637, allocations: 12 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.004657, allocations: 15.92 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.004688, allocations: 19.91 kB / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.004813, allocations: 71.77 kB / 327 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.004815, allocations: 0 / 327 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.004816, allocations: 4 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.00482, allocations: 0 / 327 MB, free: 13.47 MB / 298.7 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.0003837/0.005204, allocations: 305 kB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.005239, allocations: 8.031 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.864e-05/0.005267, allocations: 38.75 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.005398, allocations: 20.88 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.005553, allocations: 141.6 kB / 327.5 MB, free: 12.91 MB / 298.7 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 8.634e-05/0.005639, allocations: 30.27 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.00565, allocations: 8.375 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.005947, allocations: 169.4 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.005956, allocations: 192 / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.005969, allocations: 7.938 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.005974, allocations: 4 kB / 327.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.742e-05/0.006051, allocations: 35.91 kB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.006185, allocations: 149.6 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.006373, allocations: 89.25 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.566e-05/0.006429, allocations: 41.64 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.006447, allocations: 7.984 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/0.006466, allocations: 34.56 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 7.81e-07/0.006467, allocations: 0 / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002278/0.006695, allocations: 117.5 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.006745, allocations: 81.11 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.291e-05/0.006818, allocations: 129.8 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.006829, allocations: 29.83 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.32e-05/0.006863, allocations: 84.14 kB / 328.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.006884, allocations: 11.95 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.006912, allocations: 17.7 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.844e-05/0.007, allocations: 314.8 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.638e-05/0.007027, allocations: 15.98 kB / 328.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.058e-05/0.007057, allocations: 30.56 kB / 328.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.032e-05/0.007117, allocations: 46.5 kB / 329 MB, free: 11.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.007119, allocations: 0 / 329 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.555e-05/0.007205, allocations: 73.58 kB / 329 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.007217, allocations: 4 kB / 329 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/0.007226, allocations: 7.922 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.00724, allocations: 4 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.965e-05/0.00729, allocations: 4.375 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.007298, allocations: 7.938 kB / 329.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.103e-05/0.007319, allocations: 4.094 kB / 329.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.007329, allocations: 12 kB / 329.1 MB, free: 11.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.629e-05/0.007405, allocations: 121.8 kB / 329.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.692e-05/0.007482, allocations: 69.64 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.007522, allocations: 16.38 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.007523, allocations: 0 / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.341e-06/0.007529, allocations: 0 / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.007534, allocations: 3.984 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.007636, allocations: 140.7 kB / 329.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.007637, allocations: 3.938 kB / 329.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.072e-05/0.007678, allocations: 19.92 kB / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.00768, allocations: 0 / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.007693, allocations: 7.938 kB / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.007694, allocations: 0 / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.007696, allocations: 3.984 kB / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.007831, allocations: 113.9 kB / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/0.007861, allocations: 15.94 kB / 329.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.00788, allocations: 7.938 kB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.874e-05/0.007909, allocations: 8 kB / 329.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.007939, allocations: 3.984 kB / 329.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.007946, allocations: 8 kB / 329.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.824e-05/0.007994, allocations: 98.08 kB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007995, allocations: 0 / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001336/0.008128, allocations: 12 kB / 329.7 MB, free: 10.46 MB / 298.7 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.0004294/0.008558, allocations: 0.6874 MB / 330.4 MB, free: 9.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.008693, allocations: 51.84 kB / 330.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.008695, allocations: 0 / 330.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.896e-05/0.008714, allocations: 12.25 kB / 330.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005049/0.009218, allocations: 0.7106 MB / 331.2 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009887/0.01021, allocations: 1.33 MB / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.032e-05/0.01026, allocations: 83.44 kB / 332.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.245e-05/0.01028, allocations: 0 / 332.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.01033, allocations: 24.48 kB / 332.6 MB, free: 7.387 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01033, allocations: 0 / 332.6 MB, free: 7.387 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.02528, allocations: 2.631 MB / 335.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.797/6.823, allocations: 3.984 kB / 335.2 MB, free: 4.883 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.000199561 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period [Calling sys.exit(0), Time elapsed: 8.628226053901017]