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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00167/0.00167, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001987/0.001987, allocations: 214.8 kB / 23.74 MB, free: 4.672 MB / 14.72 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 1.499/1.499, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.89 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2976, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00294/0.3005, allocations: 1.573 MB / 432.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003949/0.3009, allocations: 139.5 kB / 432.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.763e-05/0.301, allocations: 4 kB / 432.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.246e-05/0.301, allocations: 3.938 kB / 432.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.3011, allocations: 11.92 kB / 432.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.3014, allocations: 39.84 kB / 433 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.3015, allocations: 31.86 kB / 433 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.3016, allocations: 15.97 kB / 433 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.704e-05/0.3016, allocations: 15.94 kB / 433 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.362e-05/0.3017, allocations: 15.92 kB / 433 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.3017, allocations: 4 kB / 433 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.112e-05/0.3017, allocations: 4 kB / 433 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.143e-05/0.3017, allocations: 11.94 kB / 433.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.478e-05/0.3018, allocations: 27.8 kB / 433.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.3019, allocations: 44.17 kB / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3019, allocations: 0 / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3019, allocations: 0 / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.3019, allocations: 0 / 433.1 MB, free: 4.746 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.0004546/0.3024, allocations: 302.1 kB / 433.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3024, allocations: 8.031 kB / 433.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.709e-05/0.3024, allocations: 34.75 kB / 433.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.3025, allocations: 8.891 kB / 433.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.3027, allocations: 141.4 kB / 433.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.986e-06/0.3027, allocations: 4.375 kB / 433.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.3027, allocations: 4.375 kB / 433.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.303, allocations: 125.6 kB / 433.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.303, allocations: 3.938 kB / 433.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.303, allocations: 0 / 433.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.303, allocations: 3.938 kB / 433.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.73e-05/0.3031, allocations: 27.92 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002947/0.3034, allocations: 232.8 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.3036, allocations: 65.08 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.183e-05/0.3036, allocations: 21.78 kB / 434.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.3036, allocations: 7.984 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.3037, allocations: 34.56 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3037, allocations: 0 / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002347/0.3039, allocations: 77.56 kB / 434.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.304, allocations: 81.11 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3041, allocations: 126.2 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.3041, allocations: 37.7 kB / 434.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.768e-05/0.3041, allocations: 80.14 kB / 434.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.3042, allocations: 15.88 kB / 434.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.3042, allocations: 13.72 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3043, allocations: 318.8 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.01e-05/0.3044, allocations: 7.984 kB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.169e-05/0.3044, allocations: 39.42 kB / 434.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.139e-05/0.3045, allocations: 43.36 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3045, allocations: 3.938 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001231/0.3046, allocations: 61.62 kB / 435 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.3047, allocations: 10.5 kB / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3047, allocations: 0 / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3047, allocations: 0 / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.96e-05/0.3047, allocations: 11.98 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.3047, allocations: 4 kB / 435 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.118e-05/0.3048, allocations: 7.891 kB / 435.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3048, allocations: 4 kB / 435.1 MB, free: 2.566 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.594e-05/0.3048, allocations: 121.9 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.3049, allocations: 45.69 kB / 435.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.305, allocations: 20.27 kB / 435.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.305, allocations: 0 / 435.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.305, allocations: 0 / 435.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.305, allocations: 0 / 435.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.3052, allocations: 148.6 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3052, allocations: 336 / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.857e-05/0.3052, allocations: 8 kB / 435.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.3052, allocations: 0 / 435.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.3052, allocations: 4 kB / 435.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3052, allocations: 3.938 kB / 435.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3052, allocations: 0 / 435.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.3054, allocations: 172.3 kB / 435.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.634e-05/0.3054, allocations: 19.81 kB / 435.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.3054, allocations: 4 kB / 435.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.745e-05/0.3055, allocations: 4 kB / 435.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.3055, allocations: 4 kB / 435.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.3055, allocations: 8 kB / 435.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.061e-05/0.3056, allocations: 103.2 kB / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3056, allocations: 0 / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.3058, allocations: 8 kB / 435.7 MB, free: 1.82 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.000477/0.3063, allocations: 0.6976 MB / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.3064, allocations: 27.92 kB / 436.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3064, allocations: 0 / 436.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.329e-05/0.3065, allocations: 11.98 kB / 436.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3068, allocations: 23.08 kB / 436.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.3081, allocations: 1.333 MB / 437.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.3084, allocations: 0.6924 MB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.606e-05/0.3084, allocations: 4 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.3084, allocations: 15.42 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3084, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.335, allocations: 1.587 MB / 440.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.14, allocations: 11.89 kB / 440.1 MB, free: 13.37 MB / 350.1 MB " [Timeout remaining time 649] (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 3.99122e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height [Calling sys.exit(0), Time elapsed: 13.767286204998527]