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.001641/0.001641, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001723/0.001723, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2146/0.2146, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 68.14 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3342, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001412/0.3357, allocations: 493 kB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3374, allocations: 1.27 MB / 0.5201 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.3374, allocations: 3.938 kB / 0.5201 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.708e-05/0.3375, allocations: 7.938 kB / 0.5201 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.3376, allocations: 6.781 kB / 0.5201 GB, free: 2.109 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.0009757/0.3386, allocations: 243.4 kB / 0.5204 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.877e-05/0.3387, allocations: 4.156 kB / 0.5204 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.3387, allocations: 9.844 kB / 0.5204 GB, free: 2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.3387, allocations: 3.062 kB / 0.5204 GB, free: 2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.3388, allocations: 9.391 kB / 0.5204 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-06/0.3388, allocations: 0 / 0.5204 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003008/0.3418, allocations: 0.6807 MB / 0.521 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.3418, allocations: 0 / 0.521 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.801e-05/0.3419, allocations: 12.95 kB / 0.5211 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.3422, allocations: 179.6 kB / 0.5212 GB, free: 1.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3422, allocations: 0 / 0.5212 GB, free: 1.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.3422, allocations: 5.125 kB / 0.5212 GB, free: 1.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3422, allocations: 0 / 0.5212 GB, free: 1.734 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.0004208/0.3427, allocations: 380.7 kB / 0.5216 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3427, allocations: 9.625 kB / 0.5216 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.3427, allocations: 31.91 kB / 0.5216 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.656e-05/0.3428, allocations: 1.453 kB / 0.5216 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.302e-05/0.3429, allocations: 163.5 kB / 0.5218 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.3429, allocations: 5.625 kB / 0.5218 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.3429, allocations: 384 / 0.5218 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.782e-05/0.343, allocations: 39.11 kB / 0.5218 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.343, allocations: 0 / 0.5218 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.343, allocations: 0 / 0.5218 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.343, allocations: 0 / 0.5218 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.796e-05/0.343, allocations: 11.17 kB / 0.5218 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001019/0.3431, allocations: 149 kB / 0.522 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.676e-05/0.3432, allocations: 17.53 kB / 0.522 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.263e-05/0.3432, allocations: 9.953 kB / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.3432, allocations: 4.5 kB / 0.522 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.3433, allocations: 59.33 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3433, allocations: 0 / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.3434, allocations: 78.08 kB / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.3435, allocations: 79.22 kB / 0.5222 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.413e-05/0.3435, allocations: 93.55 kB / 0.5223 GB, free: 488 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/0.3435, allocations: 29.95 kB / 0.5223 GB, free: 452 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.63e-05/0.3436, allocations: 82.12 kB / 0.5224 GB, free: 368 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.3436, allocations: 0 / 0.5224 GB, free: 368 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.3436, allocations: 17.08 kB / 0.5224 GB, free: 348 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.923e-05/0.3437, allocations: 312.8 kB / 0.5227 GB, free: 28 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.3437, allocations: 0.7969 kB / 0.5227 GB, free: 28 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.3437, allocations: 1.406 kB / 0.5227 GB, free: 28 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.839e-05/0.3438, allocations: 68.72 kB / 0.5228 GB, free: 15.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3438, allocations: 1.984 kB / 0.5228 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.617e-05/0.3439, allocations: 72.17 kB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.3439, allocations: 32.47 kB / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3439, allocations: 0 / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3439, allocations: 1.125 kB / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.3439, allocations: 0 / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.3439, allocations: 1.453 kB / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.344, allocations: 0 / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.344, allocations: 1.828 kB / 0.5229 GB, free: 15.84 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 0.0001323/0.3441, allocations: 142.4 kB / 0.523 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.3441, allocations: 5.781 kB / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.377e-05/0.3442, allocations: 8.625 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.3442, allocations: 0 / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3442, allocations: 1.312 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3442, allocations: 0.7031 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.3443, allocations: 150.9 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3443, allocations: 3.938 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.474e-06/0.3443, allocations: 0 / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3443, allocations: 5.844 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.3443, allocations: 4 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3444, allocations: 1.438 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3444, allocations: 0.6094 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.3445, allocations: 94.36 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.3445, allocations: 84.98 kB / 0.5234 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.3445, allocations: 5.812 kB / 0.5234 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.3446, allocations: 1.062 kB / 0.5234 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.3446, allocations: 5.828 kB / 0.5234 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3446, allocations: 1.062 kB / 0.5234 GB, free: 15.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.244e-05/0.3446, allocations: 77.17 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3446, allocations: 1.062 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003474/0.345, allocations: 64.69 kB / 0.5235 GB, free: 15.18 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.001001/0.346, allocations: 0.8586 MB / 0.5244 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.9e-05/0.3461, allocations: 62.5 kB / 0.5244 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3461, allocations: 0 / 0.5244 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.923e-05/0.3461, allocations: 60.14 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.0001304/0.3463, allocations: 2.438 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.0003602/0.3467, allocations: 147.4 kB / 0.5246 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.3469, allocations: 0.6764 MB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.799e-06/0.347, allocations: 1.891 kB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.925e-05/0.347, allocations: 9.234 kB / 0.5253 GB, free: 13.47 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.347, allocations: 1.344 kB / 0.5253 GB, free: 13.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.3678, allocations: 2.537 MB / 0.5278 GB, free: 12.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.123, allocations: 5.031 kB / 0.5278 GB, free: 12.66 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