Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001482/0.001482, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001636/0.001636, allocations: 202 kB / 18.74 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.505/1.505, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3693, allocations: 50.52 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002802/0.3721, allocations: 1.565 MB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004415/0.3726, allocations: 135.5 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.955e-05/0.3727, allocations: 7.938 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.815e-05/0.3728, allocations: 3.938 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.3729, allocations: 7.922 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.3732, allocations: 35.91 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.3733, allocations: 39.84 kB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3734, allocations: 16 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.347e-05/0.3735, allocations: 15.92 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.594e-05/0.3735, allocations: 11.92 kB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.3735, allocations: 0 / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.3736, allocations: 4 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.298e-05/0.3736, allocations: 11.94 kB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.3737, allocations: 23.81 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.3738, allocations: 50.75 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3738, allocations: 0 / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3738, allocations: 4 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.3738, allocations: 0 / 410.7 MB, free: 15.6 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005052/0.3744, allocations: 371.1 kB / 411 MB, free: 15.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3744, allocations: 12.03 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.3745, allocations: 34.75 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.897e-05/0.3745, allocations: 8.891 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.3748, allocations: 184.3 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.3748, allocations: 12.38 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.3748, allocations: 4.375 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.3751, allocations: 113.6 kB / 411.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.3751, allocations: 7.875 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.3752, allocations: 3.938 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3752, allocations: 11.92 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.689e-05/0.3752, allocations: 19.98 kB / 411.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.3756, allocations: 261.8 kB / 411.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.3759, allocations: 142.2 kB / 411.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.43e-05/0.3759, allocations: 29.77 kB / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.376, allocations: 0 / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.376, allocations: 34.56 kB / 411.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.413e-06/0.376, allocations: 3.938 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002424/0.3762, allocations: 73.75 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.3763, allocations: 85.05 kB / 412.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.3764, allocations: 138.1 kB / 412.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.3765, allocations: 25.7 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.3765, allocations: 84.14 kB / 412.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.3765, allocations: 7.953 kB / 412.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.3766, allocations: 17.72 kB / 412.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3767, allocations: 314.8 kB / 412.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.623e-05/0.3767, allocations: 8 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.417e-05/0.3768, allocations: 35.42 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.385e-05/0.3769, allocations: 51.36 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3769, allocations: 7.938 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001155/0.377, allocations: 61.62 kB / 412.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.377, allocations: 6.969 kB / 412.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.377, allocations: 7.969 kB / 412.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3771, allocations: 4 kB / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.91e-05/0.3771, allocations: 15.94 kB / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3771, allocations: 0 / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.374e-05/0.3772, allocations: 12.08 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-06/0.3772, allocations: 0 / 412.8 MB, free: 13.12 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 8.608e-05/0.3773, allocations: 121.8 kB / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.3774, allocations: 45.66 kB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.592e-05/0.3774, allocations: 12.23 kB / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3774, allocations: 0 / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3774, allocations: 0 / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3774, allocations: 4 kB / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.3776, allocations: 169.6 kB / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3776, allocations: 7.938 kB / 413.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/0.3777, allocations: 11.94 kB / 413.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3777, allocations: 0 / 413.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.3777, allocations: 3.984 kB / 413.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3777, allocations: 4 kB / 413.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3777, allocations: 0 / 413.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.3779, allocations: 168.6 kB / 413.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.3779, allocations: 97 kB / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.378, allocations: 7.984 kB / 413.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.649e-05/0.378, allocations: 4 kB / 413.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.704e-05/0.3781, allocations: 4 kB / 413.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.3781, allocations: 0 / 413.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.96e-05/0.3781, allocations: 110.4 kB / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3781, allocations: 0 / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002223/0.3784, allocations: 4 kB / 413.6 MB, free: 12.25 MB / 334.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: 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.0004466/0.3788, allocations: 0.6976 MB / 414.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001479/0.379, allocations: 35.92 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.379, allocations: 4.25 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.379, allocations: 4 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.3794, allocations: 30.17 kB / 414.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3807, allocations: 1.318 MB / 415.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.3809, allocations: 0.6885 MB / 416.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.493e-05/0.381, allocations: 0 / 416.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.381, allocations: 15.44 kB / 416.4 MB, free: 9.297 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.381, allocations: 3.938 kB / 416.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.4006, allocations: 1.48 MB / 417.9 MB, free: 7.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/8.661, allocations: 17.61 kB / 417.9 MB, free: 7.898 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height