Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00324/0.105, allocations: 1.568 MB / 427.9 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004253/0.1054, allocations: 143.5 kB / 428 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.141e-05/0.1055, allocations: 0 / 428 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.515e-05/0.1055, allocations: 7.938 kB / 428 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.1056, allocations: 15.92 kB / 428.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.1058, allocations: 35.84 kB / 428.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.1059, allocations: 31.92 kB / 428.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.05e-05/0.106, allocations: 11.98 kB / 428.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.924e-05/0.1061, allocations: 11.94 kB / 428.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.134e-05/0.1061, allocations: 23.84 kB / 428.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.1061, allocations: 0 / 428.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-06/0.1061, allocations: 4 kB / 428.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.584e-05/0.1062, allocations: 15.92 kB / 428.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.1062, allocations: 19.88 kB / 428.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.1064, allocations: 51.69 kB / 428.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1064, allocations: 0 / 428.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1064, allocations: 0 / 428.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.1064, allocations: 0 / 428.3 MB, free: 2.852 MB / 350.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.0005615/0.107, allocations: 367.2 kB / 428.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.107, allocations: 12.03 kB / 428.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.107, allocations: 38.73 kB / 428.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.1071, allocations: 12.83 kB / 428.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.1073, allocations: 196.2 kB / 428.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1074, allocations: 4.359 kB / 428.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1074, allocations: 4.375 kB / 428.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.1077, allocations: 113.5 kB / 429 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1077, allocations: 7.938 kB / 429 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1077, allocations: 0 / 429 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1077, allocations: 0 / 429 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1078, allocations: 23.92 kB / 429 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003519/0.1082, allocations: 253.8 kB / 429.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.1084, allocations: 150.2 kB / 429.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.042e-05/0.1085, allocations: 21.78 kB / 429.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1085, allocations: 3.984 kB / 429.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.1085, allocations: 34.56 kB / 429.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.1085, allocations: 3.938 kB / 429.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.000288/0.1088, allocations: 81.56 kB / 429.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.1088, allocations: 77.3 kB / 429.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.109, allocations: 132.2 kB / 429.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.109, allocations: 33.64 kB / 429.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.109, allocations: 84.14 kB / 429.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.1091, allocations: 7.938 kB / 429.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.1091, allocations: 17.84 kB / 429.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1092, allocations: 318.8 kB / 430.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.145e-05/0.1093, allocations: 11.98 kB / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.047e-05/0.1093, allocations: 35.41 kB / 430.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.1094, allocations: 43.38 kB / 430.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1094, allocations: 7.922 kB / 430.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001236/0.1096, allocations: 61.62 kB / 430.4 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1096, allocations: 8 kB / 430.4 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1096, allocations: 0 / 430.4 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1096, allocations: 128 / 430.4 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.1096, allocations: 15.98 kB / 430.4 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.1096, allocations: 7.938 kB / 430.4 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.175e-05/0.1097, allocations: 3.953 kB / 430.4 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1097, allocations: 4 kB / 430.4 MB, free: 396 kB / 350.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.603e-05/0.1098, allocations: 117.8 kB / 430.5 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.1098, allocations: 45.69 kB / 430.6 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.1099, allocations: 12.25 kB / 430.6 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1099, allocations: 3.984 kB / 430.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1099, allocations: 4 kB / 430.6 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1099, allocations: 0 / 430.6 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.1101, allocations: 177.5 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1101, allocations: 4 kB / 430.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.339e-05/0.1101, allocations: 7.938 kB / 430.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1101, allocations: 4 kB / 430.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.1102, allocations: 3.938 kB / 430.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1102, allocations: 0 / 430.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1102, allocations: 0 / 430.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.1103, allocations: 172.3 kB / 430.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.1104, allocations: 93.03 kB / 431 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.1104, allocations: 3.938 kB / 431 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.1105, allocations: 4 kB / 431 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.506e-05/0.1105, allocations: 3.984 kB / 431 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.1105, allocations: 4 kB / 431.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.077e-05/0.1106, allocations: 101 kB / 431.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1106, allocations: 4 kB / 431.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.1108, allocations: 4 kB / 431.2 MB, free: 15.52 MB / 366.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.0005453/0.1113, allocations: 0.7015 MB / 431.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1115, allocations: 35.91 kB / 431.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1115, allocations: 4 kB / 431.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.2e-05/0.1115, allocations: 4 kB / 431.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.1119, allocations: 20.02 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.1132, allocations: 1.33 MB / 433.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1135, allocations: 0.6885 MB / 433.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.58e-05/0.1136, allocations: 4 kB / 433.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.1136, allocations: 19.42 kB / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1136, allocations: 0 / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1373, allocations: 1.477 MB / 435.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.032, allocations: 11.08 kB / 435.5 MB, free: 11.17 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/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_4.1.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: 10.555977158946916]