Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002951/0.002951, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2812, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002652/0.2839, allocations: 1.507 MB / 410.3 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008164/0.2847, allocations: 470.8 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.889e-05/0.2848, allocations: 7.938 kB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.355e-05/0.2848, allocations: 0 / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.154e-05/0.2849, allocations: 15.81 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.2852, allocations: 27.91 kB / 410.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.437e-05/0.2853, allocations: 39.91 kB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.386e-05/0.2854, allocations: 12 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2855, allocations: 31.84 kB / 410.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.359e-05/0.2855, allocations: 15.92 kB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.2856, allocations: 4 kB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.443e-05/0.2856, allocations: 4 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.2856, allocations: 11.94 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.2857, allocations: 11.94 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.2858, allocations: 46.77 kB / 411 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2858, allocations: 0 / 411 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2858, allocations: 0 / 411 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.2858, allocations: 0 / 411 MB, free: 15.37 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004669/0.2863, allocations: 351.3 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2863, allocations: 12.03 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.2864, allocations: 34.75 kB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.2865, allocations: 16.92 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.2868, allocations: 184.2 kB / 411.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.2868, allocations: 4.375 kB / 411.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.2868, allocations: 384 / 411.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.2871, allocations: 123.4 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.2871, allocations: 0 / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-06/0.2871, allocations: 0 / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.2872, allocations: 0 / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.617e-05/0.2872, allocations: 27.91 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.2874, allocations: 157.6 kB / 411.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.2876, allocations: 58.55 kB / 411.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.468e-05/0.2876, allocations: 28.92 kB / 411.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.2877, allocations: 3.984 kB / 411.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.2877, allocations: 38.5 kB / 412 MB, free: 14.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2877, allocations: 0 / 412 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000224/0.2879, allocations: 69.61 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.288, allocations: 63.39 kB / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.009e-05/0.2881, allocations: 117.8 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.2881, allocations: 25.7 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.565e-05/0.2882, allocations: 84.14 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-06/0.2882, allocations: 0 / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.2882, allocations: 17.72 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2884, allocations: 314.8 kB / 412.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.2884, allocations: 8 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.404e-05/0.2884, allocations: 35.61 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.496e-05/0.2885, allocations: 35.38 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2885, allocations: 0 / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.033e-05/0.2886, allocations: 69.52 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2886, allocations: 4 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.2886, allocations: 384 / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.2886, allocations: 4 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.305e-05/0.2887, allocations: 7.984 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2887, allocations: 4 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.958e-05/0.2887, allocations: 3.938 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.2887, allocations: 4 kB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001062/0.2889, allocations: 113.8 kB / 412.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.289, allocations: 73.61 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.135e-05/0.289, allocations: 3.906 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.289, allocations: 4 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2891, allocations: 0 / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2891, allocations: 0 / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.2892, allocations: 165.6 kB / 413.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2892, allocations: 0 / 413.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-05/0.2893, allocations: 11.94 kB / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2893, allocations: 0 / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.2893, allocations: 0 / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2893, allocations: 7.984 kB / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2893, allocations: 0 / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001569/0.2895, allocations: 89.05 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-05/0.2895, allocations: 85 kB / 413.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.2896, allocations: 8 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.413e-05/0.2896, allocations: 0 / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-06/0.2896, allocations: 3.938 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2896, allocations: 4 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.716e-05/0.2897, allocations: 91.27 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2897, allocations: 0 / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001832/0.2899, allocations: 4 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0004946/0.2904, allocations: 0.6241 MB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.2905, allocations: 31.92 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2905, allocations: 0 / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.2905, allocations: 0 / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.2908, allocations: 19.94 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.2919, allocations: 1.187 MB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.2922, allocations: 0.6807 MB / 416 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.273e-05/0.2922, allocations: 3.938 kB / 416 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.074e-05/0.2923, allocations: 15.42 kB / 416 MB, free: 9.754 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2923, allocations: 0 / 416 MB, free: 9.754 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.3132, allocations: 1.329 MB / 417.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.162, allocations: 15.45 kB / 417.4 MB, free: 8.527 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches