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.001473/0.001473, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002194/0.002194, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 55.78 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.103, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003047/0.1061, allocations: 1.548 MB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003972/0.1065, allocations: 139.5 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.283e-05/0.1066, allocations: 3.938 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.272e-05/0.1067, allocations: 7.938 kB / 359.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1068, allocations: 11.94 kB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.1071, allocations: 35.89 kB / 359.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.372e-05/0.1072, allocations: 35.86 kB / 359.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.94e-05/0.1073, allocations: 15.92 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.083e-05/0.1073, allocations: 15.92 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.928e-05/0.1074, allocations: 15.92 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.1074, allocations: 4 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.185e-05/0.1074, allocations: 8 kB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.663e-05/0.1074, allocations: 15.92 kB / 359.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.948e-05/0.1075, allocations: 19.81 kB / 359.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.1076, allocations: 43.81 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1076, allocations: 0 / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1076, allocations: 4 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1076, allocations: 0 / 359.5 MB, free: 12.09 MB / 302.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.0004613/0.1081, allocations: 367.5 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1081, allocations: 8.031 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.1082, allocations: 38.75 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.1082, allocations: 8.844 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.1084, allocations: 194.7 kB / 360.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.1084, allocations: 4.375 kB / 360.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1084, allocations: 4.375 kB / 360.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.1087, allocations: 117.6 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.1087, allocations: 7.922 kB / 360.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1087, allocations: 0 / 360.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1088, allocations: 0 / 360.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.059e-05/0.1088, allocations: 23.92 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002901/0.1091, allocations: 261.8 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.1093, allocations: 146.2 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.183e-05/0.1094, allocations: 29.78 kB / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.1094, allocations: 0 / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1095, allocations: 38.55 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.1095, allocations: 0 / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002361/0.1097, allocations: 77.52 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.1098, allocations: 77.11 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1099, allocations: 134.1 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.1099, allocations: 25.7 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/0.11, allocations: 88.08 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/0.11, allocations: 16.05 kB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.1101, allocations: 21.62 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1102, allocations: 314.8 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.312e-05/0.1102, allocations: 11.98 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.157e-05/0.1103, allocations: 27.44 kB / 361.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.341e-05/0.1104, allocations: 47.36 kB / 361.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1104, allocations: 3.938 kB / 361.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001259/0.1105, allocations: 69.61 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1105, allocations: 4 kB / 361.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1105, allocations: 8.125 kB / 361.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1106, allocations: 4 kB / 361.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.523e-05/0.1106, allocations: 11.98 kB / 361.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1106, allocations: 3.938 kB / 361.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.196e-05/0.1107, allocations: 4 kB / 361.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1107, allocations: 0 / 361.7 MB, free: 9.621 MB / 302.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.165e-05/0.1108, allocations: 122.8 kB / 361.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-05/0.1109, allocations: 49.59 kB / 361.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.1109, allocations: 12.25 kB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1109, allocations: 4 kB / 361.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1109, allocations: 0 / 361.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1109, allocations: 7.984 kB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.1111, allocations: 165.6 kB / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1111, allocations: 3.984 kB / 362 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/0.1112, allocations: 8 kB / 362 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1112, allocations: 0 / 362 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.1112, allocations: 3.938 kB / 362 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.1112, allocations: 7.938 kB / 362 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1112, allocations: 0 / 362 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.1114, allocations: 168.2 kB / 362.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.795e-05/0.1114, allocations: 93 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.1115, allocations: 4 kB / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.679e-05/0.1115, allocations: 0 / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.1116, allocations: 8.359 kB / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.1116, allocations: 0 / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.507e-05/0.1116, allocations: 109.7 kB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1117, allocations: 0 / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.1119, allocations: 4 kB / 362.4 MB, free: 8.758 MB / 302.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.0005185/0.1124, allocations: 0.7053 MB / 363.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.1126, allocations: 35.91 kB / 363.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1126, allocations: 0 / 363.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.346e-05/0.1126, allocations: 4 kB / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.113, allocations: 23.95 kB / 363.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.1144, allocations: 1.334 MB / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.1147, allocations: 0.6885 MB / 365.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.935e-05/0.1147, allocations: 256 / 365.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.1148, allocations: 15.44 kB / 365.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of SimCode: time 1.913e-06/0.1148, allocations: 0 / 365.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.1348, allocations: 1.453 MB / 366.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.387, allocations: 7.984 kB / 366.7 MB, free: 4.414 MB / 302.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