Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 184.2 kB / 23.71 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 47.94 kB / 370.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2977, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00342/0.3011, allocations: 1.564 MB / 424.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000499/0.3016, allocations: 135.5 kB / 424.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.3017, allocations: 4 kB / 424.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.539e-05/0.3017, allocations: 3.938 kB / 424.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.3019, allocations: 11.92 kB / 424.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.3023, allocations: 39.84 kB / 424.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001881/0.3025, allocations: 35.86 kB / 424.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.3026, allocations: 11.98 kB / 424.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.476e-05/0.3026, allocations: 15.94 kB / 424.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.31e-05/0.3027, allocations: 11.92 kB / 424.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.3027, allocations: 4 kB / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.3027, allocations: 4 kB / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.3028, allocations: 11.92 kB / 424.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.302e-05/0.3029, allocations: 27.8 kB / 424.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.303, allocations: 47.2 kB / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.303, allocations: 0 / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.303, allocations: 0 / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.303, allocations: 0 / 424.6 MB, free: 12.65 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.0005446/0.3036, allocations: 299 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3036, allocations: 8.031 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.104e-05/0.3037, allocations: 38.75 kB / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.3037, allocations: 12.88 kB / 424.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.304, allocations: 138.4 kB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.304, allocations: 8.312 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.304, allocations: 4.375 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.3043, allocations: 113.5 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3043, allocations: 3.938 kB / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.3043, allocations: 4 kB / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3044, allocations: 0 / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.877e-05/0.3044, allocations: 23.92 kB / 425.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.3048, allocations: 236.8 kB / 425.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.305, allocations: 69.08 kB / 425.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.458e-05/0.3051, allocations: 25.77 kB / 425.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3051, allocations: 0 / 425.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3051, allocations: 38.56 kB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.3051, allocations: 0 / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002588/0.3054, allocations: 77.61 kB / 425.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.3054, allocations: 77.11 kB / 425.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.3056, allocations: 137.6 kB / 425.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.3056, allocations: 29.7 kB / 425.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.3056, allocations: 88.12 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.3057, allocations: 3.938 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.3057, allocations: 17.72 kB / 426 MB, free: 11.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3058, allocations: 319 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.077e-05/0.3059, allocations: 11.98 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.851e-05/0.3059, allocations: 31.42 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.985e-05/0.306, allocations: 47.36 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.306, allocations: 3.938 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001257/0.3062, allocations: 69.58 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3062, allocations: 4 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3062, allocations: 0 / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3062, allocations: 4 kB / 426.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.511e-05/0.3062, allocations: 8.109 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3063, allocations: 8 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.886e-05/0.3063, allocations: 3.938 kB / 426.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.527e-06/0.3063, allocations: 4 kB / 426.5 MB, free: 10.47 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 9.83e-05/0.3064, allocations: 121.8 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.3065, allocations: 45.66 kB / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/0.3065, allocations: 16.33 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3065, allocations: 4.266 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3065, allocations: 0 / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.3065, allocations: 4 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.3067, allocations: 144.7 kB / 426.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3067, allocations: 0 / 426.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.3067, allocations: 15.92 kB / 426.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3067, allocations: 0 / 426.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.3068, allocations: 0 / 426.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3068, allocations: 3.938 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3068, allocations: 4 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.307, allocations: 168.3 kB / 427 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-05/0.307, allocations: 19.88 kB / 427 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.307, allocations: 4 kB / 427 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.472e-05/0.3071, allocations: 0 / 427 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.3071, allocations: 7.984 kB / 427 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.3071, allocations: 0 / 427 MB, free: 9.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.399e-05/0.3072, allocations: 103.3 kB / 427.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3072, allocations: 0 / 427.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.3074, allocations: 8 kB / 427.1 MB, free: 9.727 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.0006292/0.308, allocations: 0.6976 MB / 427.8 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3083, allocations: 36.09 kB / 427.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3083, allocations: 4 kB / 427.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.084e-05/0.3083, allocations: 4 kB / 427.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.3086, allocations: 16.02 kB / 427.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.3101, allocations: 1.322 MB / 429.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.3104, allocations: 0.6922 MB / 429.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.312e-05/0.3105, allocations: 8 kB / 429.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.3105, allocations: 15.42 kB / 429.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3105, allocations: 4 kB / 429.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03031/0.3408, allocations: 1.589 MB / 431.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.88, allocations: 12.05 kB / 431.5 MB, free: 5.309 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.436654953984544]