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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001988/0.001988, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.91 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1082, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003395/0.1115, allocations: 1.59 MB / 419.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1125, allocations: 450.8 kB / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1127, allocations: 4 kB / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.96e-05/0.1127, allocations: 11.92 kB / 419.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000221/0.113, allocations: 11.88 kB / 419.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1132, allocations: 39.89 kB / 419.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.1133, allocations: 67.77 kB / 420 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.1134, allocations: 7.984 kB / 420 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1135, allocations: 31.92 kB / 420 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.875e-05/0.1136, allocations: 39.77 kB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.1136, allocations: 4 kB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.1137, allocations: 8 kB / 420 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.218e-05/0.1137, allocations: 15.92 kB / 420.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.531e-05/0.1138, allocations: 31.86 kB / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.1139, allocations: 59.72 kB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1139, allocations: 3.938 kB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1139, allocations: 0 / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.1139, allocations: 4 kB / 420.2 MB, free: 10.25 MB / 350.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.0006435/0.1146, allocations: 371.2 kB / 420.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1146, allocations: 16.02 kB / 420.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.633e-05/0.1147, allocations: 38.69 kB / 420.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.1147, allocations: 12.89 kB / 420.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.115, allocations: 196.2 kB / 420.8 MB, free: 9.539 MB / 350.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.0001101/0.1151, allocations: 34.27 kB / 420.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.1151, allocations: 8.375 kB / 420.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.1155, allocations: 164.9 kB / 421 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1155, allocations: 0 / 421 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1155, allocations: 4 kB / 421 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1155, allocations: 0 / 421 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.1156, allocations: 39.91 kB / 421 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002309/0.1159, allocations: 182.5 kB / 421.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.1162, allocations: 182.3 kB / 421.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1163, allocations: 33.7 kB / 421.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.1163, allocations: 7.938 kB / 421.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.1164, allocations: 30.56 kB / 421.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.1164, allocations: 0 / 421.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003771/0.1167, allocations: 121.5 kB / 421.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.991e-05/0.1168, allocations: 85.11 kB / 421.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.117, allocations: 121.8 kB / 421.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.117, allocations: 25.7 kB / 421.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/0.117, allocations: 100.1 kB / 421.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.1171, allocations: 3.953 kB / 421.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.1171, allocations: 17.84 kB / 421.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1173, allocations: 326.8 kB / 422.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.909e-05/0.1173, allocations: 15.98 kB / 422.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.961e-05/0.1174, allocations: 57.94 kB / 422.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.1176, allocations: 82.12 kB / 422.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1176, allocations: 0 / 422.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002184/0.1178, allocations: 113.3 kB / 422.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1178, allocations: 4 kB / 422.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1179, allocations: 4 kB / 422.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.1179, allocations: 0 / 422.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.452e-05/0.118, allocations: 15.98 kB / 422.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.118, allocations: 4 kB / 422.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.517e-05/0.118, allocations: 7.984 kB / 422.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.118, allocations: 4.219 kB / 422.5 MB, free: 7.543 MB / 350.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.0001278/0.1182, allocations: 125.8 kB / 422.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.1183, allocations: 73.58 kB / 422.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.1184, allocations: 12.36 kB / 422.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.1184, allocations: 4 kB / 422.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1184, allocations: 0 / 422.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1184, allocations: 0 / 422.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.1186, allocations: 173.6 kB / 422.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.1186, allocations: 8.25 kB / 422.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.279e-05/0.1187, allocations: 19.92 kB / 422.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1187, allocations: 4 kB / 422.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.1187, allocations: 0 / 422.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1187, allocations: 0 / 422.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1187, allocations: 4 kB / 422.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.1189, allocations: 121.9 kB / 423.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.106e-05/0.119, allocations: 100.9 kB / 423.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.119, allocations: 8 kB / 423.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.1191, allocations: 4 kB / 423.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.1191, allocations: 0 / 423.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.1191, allocations: 11.98 kB / 423.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.713e-05/0.1192, allocations: 98.27 kB / 423.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1192, allocations: 0 / 423.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002055/0.1194, allocations: 8 kB / 423.3 MB, free: 6.68 MB / 350.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.0007325/0.1202, allocations: 0.7068 MB / 424 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002172/0.1204, allocations: 59.83 kB / 424.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1204, allocations: 0.5 kB / 424.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.744e-05/0.1204, allocations: 8 kB / 424.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007372/0.1211, allocations: 0.718 MB / 424.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.1227, allocations: 1.399 MB / 426.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.123, allocations: 0.6891 MB / 426.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.243e-05/0.123, allocations: 11.92 kB / 426.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.128e-05/0.1231, allocations: 19.44 kB / 426.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1231, allocations: 0 / 426.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.1485, allocations: 1.959 MB / 428.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.197/8.346, allocations: 0.7031 kB / 428.9 MB, free: 1.023 MB / 350.1 MB " [Timeout remaining time 652] (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.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] 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) [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: 10.92964983638376]