Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001827/0.001827, allocations: 200.1 kB / 18 MB, free: 5.168 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 47.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 49.44 MB / 400.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002739/0.2648, allocations: 1.486 MB / 401.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007434/0.2656, allocations: 435.3 kB / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.677e-05/0.2656, allocations: 0 / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.724e-05/0.2657, allocations: 3.938 kB / 402.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.81e-05/0.2657, allocations: 11.88 kB / 402.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.266, allocations: 27.97 kB / 402.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.118e-05/0.2661, allocations: 39.8 kB / 402.2 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.625e-05/0.2662, allocations: 15.97 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.991e-05/0.2663, allocations: 19.88 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.584e-05/0.2663, allocations: 19.91 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.2663, allocations: 4 kB / 402.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.2664, allocations: 4 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.2664, allocations: 7.984 kB / 402.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.745e-05/0.2664, allocations: 19.88 kB / 402.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.074e-05/0.2665, allocations: 35.83 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2665, allocations: 0 / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2665, allocations: 0 / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.2665, allocations: 0 / 402.4 MB, free: 6.652 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004435/0.267, allocations: 346.3 kB / 402.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.267, allocations: 16.02 kB / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.2671, allocations: 34.75 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.563e-05/0.2671, allocations: 12.89 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.2673, allocations: 184.2 kB / 402.9 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.2673, allocations: 4.375 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.2674, allocations: 8.312 kB / 403 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.2677, allocations: 115.4 kB / 403.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2677, allocations: 3.938 kB / 403.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.2677, allocations: 0 / 403.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2677, allocations: 0 / 403.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.849e-05/0.2678, allocations: 19.98 kB / 403.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.268, allocations: 157.7 kB / 403.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.2681, allocations: 66.48 kB / 403.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.237e-05/0.2682, allocations: 24.92 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.2682, allocations: 0 / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.2683, allocations: 38.5 kB / 403.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.2683, allocations: 0 / 403.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002421/0.2685, allocations: 73.62 kB / 403.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.2686, allocations: 63.34 kB / 403.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.608e-05/0.2687, allocations: 109.8 kB / 403.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.2687, allocations: 25.7 kB / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.2687, allocations: 88.12 kB / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-06/0.2688, allocations: 0 / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.2688, allocations: 17.72 kB / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2689, allocations: 314.8 kB / 404.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/0.2689, allocations: 7.984 kB / 404.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.773e-05/0.269, allocations: 27.44 kB / 404.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.984e-05/0.269, allocations: 35.38 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.269, allocations: 0 / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.803e-05/0.2691, allocations: 65.5 kB / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2692, allocations: 4 kB / 404.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2692, allocations: 4 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2692, allocations: 288 / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.507e-05/0.2692, allocations: 7.938 kB / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.2693, allocations: 4 kB / 404.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.892e-05/0.2693, allocations: 0 / 404.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-06/0.2693, allocations: 7.984 kB / 404.2 MB, free: 4.547 MB / 318.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 9.579e-05/0.2694, allocations: 118 kB / 404.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.2695, allocations: 69.56 kB / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.2696, allocations: 12.28 kB / 404.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2696, allocations: 3.984 kB / 404.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2696, allocations: 0 / 404.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2696, allocations: 0 / 404.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.2697, allocations: 157.6 kB / 404.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2697, allocations: 0 / 404.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.205e-05/0.2698, allocations: 19.86 kB / 404.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2698, allocations: 4 kB / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.2698, allocations: 0 / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2698, allocations: 0 / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2698, allocations: 4 kB / 404.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.27, allocations: 89.06 kB / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.2701, allocations: 96.97 kB / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.2701, allocations: 0 / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.141e-05/0.2701, allocations: 0 / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-06/0.2701, allocations: 4 kB / 404.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.2702, allocations: 4 kB / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.2702, allocations: 87.27 kB / 404.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2702, allocations: 0 / 404.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001956/0.2704, allocations: 4 kB / 404.9 MB, free: 3.777 MB / 318.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.0004998/0.2709, allocations: 0.6357 MB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.2711, allocations: 27.92 kB / 405.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2711, allocations: 0 / 405.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.81e-07/0.2711, allocations: 0 / 405.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.2713, allocations: 30.66 kB / 405.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.2724, allocations: 1.19 MB / 406.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.2728, allocations: 0.6883 MB / 407.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.447e-05/0.2728, allocations: 0 / 407.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.2728, allocations: 15.44 kB / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2728, allocations: 4 kB / 407.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.2941, allocations: 1.327 MB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.082, allocations: 4.625 kB / 408.8 MB, free: 15.82 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches