Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008821/0.0008821, allocations: 84.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000867/0.000867, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8796/0.8796, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 324.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.251e-05/2.479e-05, allocations: 3.125 kB / 324.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002894/0.002918, allocations: 1.603 MB / 326.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008883/0.003807, allocations: 482.8 kB / 326.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.663e-05/0.003883, allocations: 4 kB / 326.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.887e-05/0.003922, allocations: 7.875 kB / 326.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.004099, allocations: 11.81 kB / 326.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.004364, allocations: 59.8 kB / 326.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001387/0.004502, allocations: 71.72 kB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.266e-05/0.004595, allocations: 11.98 kB / 326.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.004761, allocations: 47.89 kB / 326.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.703e-05/0.004818, allocations: 23.95 kB / 326.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.004841, allocations: 8 kB / 326.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.912e-05/0.00488, allocations: 4 kB / 326.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.004905, allocations: 19.92 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.004944, allocations: 19.92 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.00511, allocations: 71.7 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.005112, allocations: 4 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.005114, allocations: 0 / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.005118, allocations: 0 / 327 MB, free: 13.3 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.0004881/0.005606, allocations: 302 kB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.005649, allocations: 15.98 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.005691, allocations: 34.75 kB / 327.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.005882, allocations: 20.88 kB / 327.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.006105, allocations: 140.3 kB / 327.5 MB, free: 12.74 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 0.0001041/0.00621, allocations: 38.25 kB / 327.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.006225, allocations: 8.375 kB / 327.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.00658, allocations: 169.3 kB / 327.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.00659, allocations: 4.188 kB / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.006603, allocations: 3.938 kB / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.006608, allocations: 0 / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.006734, allocations: 35.97 kB / 327.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.006901, allocations: 149.5 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.007094, allocations: 89.25 kB / 328 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.628e-05/0.00715, allocations: 41.7 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.007167, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.007184, allocations: 38.5 kB / 328 MB, free: 12.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.007185, allocations: 0 / 328 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002166/0.007401, allocations: 117.7 kB / 328.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.007454, allocations: 89.22 kB / 328.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.842e-05/0.007522, allocations: 125.8 kB / 328.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.007533, allocations: 29.7 kB / 328.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.007565, allocations: 92.12 kB / 328.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.007581, allocations: 3.953 kB / 328.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.007607, allocations: 17.72 kB / 328.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.007699, allocations: 322.8 kB / 328.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.329e-05/0.007722, allocations: 4 kB / 328.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.082e-05/0.007753, allocations: 34.56 kB / 328.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.626e-05/0.00781, allocations: 50.5 kB / 328.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.007811, allocations: 0 / 328.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.77e-05/0.007899, allocations: 73.56 kB / 329 MB, free: 11.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.007911, allocations: 8 kB / 329 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.007915, allocations: 3.938 kB / 329 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.007926, allocations: 0 / 329 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.39e-05/0.007969, allocations: 11.98 kB / 329 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.007975, allocations: 4.094 kB / 329 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.136e-05/0.007996, allocations: 4 kB / 329 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.008001, allocations: 0 / 329 MB, free: 11.02 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 6.481e-05/0.008066, allocations: 125.7 kB / 329.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-05/0.008139, allocations: 73.64 kB / 329.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.008167, allocations: 16.36 kB / 329.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.008169, allocations: 0 / 329.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.008173, allocations: 4 kB / 329.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.008176, allocations: 3.938 kB / 329.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.445e-05/0.008251, allocations: 136.7 kB / 329.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.008252, allocations: 4 kB / 329.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.358e-05/0.008285, allocations: 11.98 kB / 329.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.008289, allocations: 4 kB / 329.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.008298, allocations: 7.938 kB / 329.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.008299, allocations: 0 / 329.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.0083, allocations: 3.984 kB / 329.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.008426, allocations: 130.1 kB / 329.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.008451, allocations: 8.016 kB / 329.5 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.00847, allocations: 15.92 kB / 329.5 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.846e-05/0.008498, allocations: 4 kB / 329.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.358e-05/0.008522, allocations: 4 kB / 329.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.008527, allocations: 4 kB / 329.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.198e-05/0.008569, allocations: 106.1 kB / 329.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008569, allocations: 0 / 329.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001278/0.008697, allocations: 8 kB / 329.7 MB, free: 10.29 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.0003648/0.009062, allocations: 0.6874 MB / 330.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.009171, allocations: 48.05 kB / 330.4 MB, free: 9.516 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.009172, allocations: 0 / 330.4 MB, free: 9.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.953e-05/0.009191, allocations: 15.98 kB / 330.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.009596, allocations: 0.7142 MB / 331.1 MB, free: 8.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008402/0.01044, allocations: 1.328 MB / 332.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.593e-05/0.01048, allocations: 79.52 kB / 332.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.301e-05/0.01051, allocations: 4 kB / 332.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.01054, allocations: 20.48 kB / 332.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of SimCode: time 6.02e-07/0.01054, allocations: 0 / 332.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0161/0.02665, allocations: 2.636 MB / 335.2 MB, free: 4.684 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/6.853, allocations: 0 / 335.2 MB, free: 4.684 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.664203049615026]