Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 108.8 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2216/0.2216, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002525, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3892, allocations: 60.83 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001477/0.3907, allocations: 497.3 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3925, allocations: 1.269 MB / 0.5201 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.57e-05/0.3925, allocations: 0 / 0.5201 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.3925, allocations: 3.938 kB / 0.5201 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.3927, allocations: 6.969 kB / 0.5201 GB, free: 2.125 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.3937, allocations: 244 kB / 0.5204 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.702e-05/0.3938, allocations: 4.031 kB / 0.5204 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.606e-05/0.3938, allocations: 5.828 kB / 0.5204 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.3938, allocations: 1.156 kB / 0.5204 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.719e-05/0.3939, allocations: 6.328 kB / 0.5204 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.3939, allocations: 1.281 kB / 0.5204 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003203/0.3971, allocations: 0.6908 MB / 0.521 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-06/0.3972, allocations: 2.219 kB / 0.521 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.196e-05/0.3972, allocations: 9.156 kB / 0.5211 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3975, allocations: 182.8 kB / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3975, allocations: 0 / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3975, allocations: 0 / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.3975, allocations: 0 / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000322/0.3979, allocations: 381.4 kB / 0.5216 GB, free: 1.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3979, allocations: 10.19 kB / 0.5216 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.514e-05/0.3979, allocations: 34.75 kB / 0.5216 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.398, allocations: 2.062 kB / 0.5216 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.233e-05/0.398, allocations: 163 kB / 0.5218 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3981, allocations: 1.562 kB / 0.5218 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.3981, allocations: 6.078 kB / 0.5218 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.093e-05/0.3981, allocations: 36.73 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.3982, allocations: 0 / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.3982, allocations: 1.531 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.3982, allocations: 0 / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.732e-05/0.3982, allocations: 7.062 kB / 0.5218 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.3983, allocations: 149.1 kB / 0.522 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.357e-05/0.3984, allocations: 16.39 kB / 0.522 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.417e-05/0.3984, allocations: 15.88 kB / 0.522 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.3984, allocations: 3.938 kB / 0.522 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.3984, allocations: 58.5 kB / 0.5221 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3984, allocations: 4 kB / 0.5221 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001461/0.3986, allocations: 66.8 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.3986, allocations: 78.17 kB / 0.5222 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.759e-05/0.3987, allocations: 98.75 kB / 0.5223 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-06/0.3987, allocations: 25.7 kB / 0.5223 GB, free: 472 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.435e-05/0.3987, allocations: 81.91 kB / 0.5224 GB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.3987, allocations: 0 / 0.5224 GB, free: 388 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.461e-05/0.3987, allocations: 13.17 kB / 0.5224 GB, free: 372 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.73e-05/0.3988, allocations: 316.7 kB / 0.5227 GB, free: 48 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.3988, allocations: 4.719 kB / 0.5227 GB, free: 44 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.745e-06/0.3988, allocations: 5.953 kB / 0.5227 GB, free: 40 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.14e-05/0.3989, allocations: 61.3 kB / 0.5228 GB, free: 15.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3989, allocations: 0 / 0.5228 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.802e-05/0.399, allocations: 64.75 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.399, allocations: 31.78 kB / 0.5229 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.399, allocations: 1.828 kB / 0.5229 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3991, allocations: 4.094 kB / 0.5229 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.804e-06/0.3991, allocations: 1.031 kB / 0.5229 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3991, allocations: 4.641 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.663e-05/0.3991, allocations: 1 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.3991, allocations: 5.375 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.719e-05/0.3992, allocations: 142.8 kB / 0.523 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.3992, allocations: 5.531 kB / 0.523 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.182e-05/0.3992, allocations: 7.688 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3992, allocations: 5.125 kB / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.3992, allocations: 0 / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3992, allocations: 4.734 kB / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.824e-05/0.3993, allocations: 146.6 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3993, allocations: 5.094 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3994, allocations: 0 / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3994, allocations: 0.6562 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.3994, allocations: 8.938 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3994, allocations: 1.094 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3994, allocations: 0.6094 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.934e-05/0.3995, allocations: 93.27 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.315e-05/0.3995, allocations: 87 kB / 0.5234 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.3996, allocations: 1.938 kB / 0.5234 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.102e-05/0.3996, allocations: 0 / 0.5234 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.3996, allocations: 1.578 kB / 0.5234 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.3996, allocations: 9.812 kB / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.146e-05/0.3996, allocations: 77.27 kB / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3996, allocations: 4.125 kB / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.4, allocations: 59.56 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008942/0.4009, allocations: 0.8607 MB / 0.5244 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.436e-05/0.401, allocations: 62.34 kB / 0.5244 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.401, allocations: 0 / 0.5244 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.369e-05/0.401, allocations: 64.12 kB / 0.5245 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.4012, allocations: 6.406 kB / 0.5245 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003552/0.4015, allocations: 144.1 kB / 0.5246 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.4018, allocations: 0.6764 MB / 0.5253 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.929e-06/0.4018, allocations: 1.719 kB / 0.5253 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.4018, allocations: 9.969 kB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4018, allocations: 4.125 kB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.4234, allocations: 2.529 MB / 0.5278 GB, free: 12.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.222, allocations: 9.766 kB / 0.5278 GB, free: 12.65 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches