Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2235/0.2235, allocations: 46.11 MB / 344.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 79.86 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3485, allocations: 62.45 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001509/0.35, allocations: 485.7 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.3522, allocations: 1.265 MB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.786e-05/0.3522, allocations: 0 / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.3523, allocations: 1.312 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.3525, allocations: 14.16 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487: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.001204/0.3537, allocations: 246.5 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.267e-05/0.3538, allocations: 7.375 kB / 0.5326 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.53e-05/0.3538, allocations: 5.062 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.204e-05/0.3538, allocations: 5.141 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.286e-05/0.3539, allocations: 5.531 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-06/0.3539, allocations: 0 / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004201/0.3581, allocations: 0.6846 MB / 0.5332 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.3582, allocations: 7.922 kB / 0.5332 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.285e-05/0.3582, allocations: 1.375 kB / 0.5332 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.3586, allocations: 174.7 kB / 0.5334 GB, free: 11.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3586, allocations: 1.375 kB / 0.5334 GB, free: 11.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3586, allocations: 0 / 0.5334 GB, free: 11.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.3586, allocations: 0 / 0.5334 GB, free: 11.42 MB / 398.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.0004585/0.3591, allocations: 393.2 kB / 0.5338 GB, free: 11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3591, allocations: 9.625 kB / 0.5338 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.981e-05/0.3591, allocations: 32.12 kB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.3592, allocations: 4.938 kB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.3593, allocations: 161.8 kB / 0.534 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3593, allocations: 5.734 kB / 0.534 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.764e-06/0.3594, allocations: 384 / 0.534 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.614e-05/0.3595, allocations: 40.31 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3595, allocations: 3.938 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3595, allocations: 1.375 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3595, allocations: 0 / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.827e-05/0.3595, allocations: 1.375 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.3597, allocations: 151.1 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.316e-05/0.3597, allocations: 17.33 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.3598, allocations: 10.22 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.3598, allocations: 7.875 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.3598, allocations: 57.64 kB / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.183e-06/0.3598, allocations: 0 / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.36, allocations: 69.03 kB / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.3601, allocations: 78.48 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.3602, allocations: 96.59 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3602, allocations: 25.7 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.3603, allocations: 89.5 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.3603, allocations: 0 / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.3603, allocations: 12.47 kB / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3605, allocations: 315.1 kB / 0.5349 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.285e-05/0.3605, allocations: 1.375 kB / 0.5349 GB, free: 9.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.835e-06/0.3605, allocations: 5.312 kB / 0.5349 GB, free: 9.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.503e-05/0.3606, allocations: 68.38 kB / 0.535 GB, free: 9.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3606, allocations: 0 / 0.535 GB, free: 9.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.892e-05/0.3607, allocations: 67.55 kB / 0.5351 GB, free: 9.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.3607, allocations: 31.2 kB / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3607, allocations: 0 / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3607, allocations: 1.469 kB / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-06/0.3607, allocations: 7.984 kB / 0.5351 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3608, allocations: 0 / 0.5351 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.3608, allocations: 1.375 kB / 0.5351 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.3608, allocations: 0 / 0.5351 GB, free: 9.492 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.0001043/0.3609, allocations: 134.3 kB / 0.5352 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.3609, allocations: 9.25 kB / 0.5352 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.132e-05/0.3609, allocations: 4.5 kB / 0.5352 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3609, allocations: 4 kB / 0.5352 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.361, allocations: 3.938 kB / 0.5352 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.361, allocations: 4 kB / 0.5353 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.3611, allocations: 156.4 kB / 0.5354 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3611, allocations: 3.938 kB / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-06/0.3611, allocations: 1.375 kB / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3611, allocations: 0 / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.3611, allocations: 1.375 kB / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3612, allocations: 0 / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3612, allocations: 3.984 kB / 0.5354 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.3613, allocations: 95.2 kB / 0.5355 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.3614, allocations: 82.42 kB / 0.5356 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.3614, allocations: 0 / 0.5356 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.3614, allocations: 1.375 kB / 0.5356 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.398e-05/0.3614, allocations: 3.984 kB / 0.5356 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3614, allocations: 1.375 kB / 0.5356 GB, free: 8.914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.449e-05/0.3615, allocations: 78.03 kB / 0.5357 GB, free: 8.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3615, allocations: 3.938 kB / 0.5357 GB, free: 8.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.3618, allocations: 71.92 kB / 0.5357 GB, free: 8.809 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.001244/0.3631, allocations: 0.8566 MB / 0.5366 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001227/0.3632, allocations: 56.91 kB / 0.5366 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3633, allocations: 9.375 kB / 0.5366 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.882e-05/0.3633, allocations: 58.09 kB / 0.5367 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.3635, allocations: 6.688 kB / 0.5367 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.3641, allocations: 140.5 kB / 0.5368 GB, free: 7.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.3645, allocations: 0.6716 MB / 0.5375 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.337e-05/0.3645, allocations: 0 / 0.5375 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.3646, allocations: 10.19 kB / 0.5375 GB, free: 7.07 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3646, allocations: 0 / 0.5375 GB, free: 7.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.3983, allocations: 2.534 MB / 0.54 GB, free: 5.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.274/8.672, allocations: 6.094 kB / 0.54 GB, free: 5.641 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches