Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001301/0.001301, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001525/0.001525, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2348/0.2348, allocations: 46.96 MB / 361.7 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002944/0.002944, allocations: 67.89 kB / 0.4969 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3725, allocations: 66.02 MB / 0.5613 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0017/0.3742, allocations: 0.4921 MB / 0.5618 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.3766, allocations: 1.339 MB / 0.5631 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.04e-05/0.3766, allocations: 0 / 0.5631 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.313e-05/0.3766, allocations: 4 kB / 0.5631 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.3768, allocations: 19.88 kB / 0.5631 GB, free: 2.391 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.001279/0.3781, allocations: 255.3 kB / 0.5634 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.579e-05/0.3782, allocations: 7.984 kB / 0.5634 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.574e-05/0.3782, allocations: 0 / 0.5634 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.96e-05/0.3782, allocations: 0 / 0.5634 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.95e-05/0.3783, allocations: 7.984 kB / 0.5634 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-06/0.3783, allocations: 0 / 0.5634 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004443/0.3827, allocations: 0.7363 MB / 0.5641 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.3828, allocations: 3.938 kB / 0.5641 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.3828, allocations: 0 / 0.5641 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.3832, allocations: 181.6 kB / 0.5643 GB, free: 1.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3832, allocations: 4 kB / 0.5643 GB, free: 1.336 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3832, allocations: 4 kB / 0.5643 GB, free: 1.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.3832, allocations: 0 / 0.5643 GB, free: 1.332 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.0005114/0.3838, allocations: 307.7 kB / 0.5646 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3838, allocations: 12.03 kB / 0.5646 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.055e-05/0.3838, allocations: 192 / 0.5646 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.248e-05/0.3839, allocations: 38.75 kB / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.3839, allocations: 0.9375 kB / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.384, allocations: 106.5 kB / 0.5647 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.3841, allocations: 4.312 kB / 0.5647 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.3841, allocations: 4.125 kB / 0.5648 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.3842, allocations: 63.39 kB / 0.5648 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3842, allocations: 0 / 0.5648 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.3842, allocations: 0 / 0.5648 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3842, allocations: 3.938 kB / 0.5648 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.809e-05/0.3843, allocations: 33.64 kB / 0.5648 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.3844, allocations: 116.8 kB / 0.565 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.986e-05/0.3845, allocations: 48.25 kB / 0.565 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.747e-05/0.3845, allocations: 38.48 kB / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3846, allocations: 4.062 kB / 0.565 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.3846, allocations: 56.27 kB / 0.5651 GB, free: 352 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.196e-06/0.3846, allocations: 4 kB / 0.5651 GB, free: 348 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002585/0.3849, allocations: 122.8 kB / 0.5652 GB, free: 200 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.3849, allocations: 77.11 kB / 0.5653 GB, free: 104 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.3851, allocations: 97.91 kB / 0.5654 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.3851, allocations: 25.7 kB / 0.5654 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.3851, allocations: 80.14 kB / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.3851, allocations: 0 / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.3852, allocations: 13.72 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3853, allocations: 318.7 kB / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.907e-05/0.3854, allocations: 25.7 kB / 0.5658 GB, free: 15.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.837e-05/0.3854, allocations: 37.95 kB / 0.5659 GB, free: 15.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.71e-05/0.3855, allocations: 60.27 kB / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3855, allocations: 0 / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001342/0.3856, allocations: 96.98 kB / 0.566 GB, free: 15.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.3856, allocations: 29.7 kB / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3856, allocations: 0 / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3857, allocations: 4 kB / 0.566 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3857, allocations: 0 / 0.566 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3857, allocations: 0 / 0.566 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.3857, allocations: 4.094 kB / 0.5661 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3857, allocations: 11.92 kB / 0.5661 GB, free: 15.23 MB / 414.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.0001154/0.3858, allocations: 135.5 kB / 0.5662 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.945e-05/0.3858, allocations: 7.922 kB / 0.5662 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.316e-05/0.3859, allocations: 3.156 kB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3859, allocations: 0 / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3859, allocations: 4 kB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3859, allocations: 0 / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.386, allocations: 116.7 kB / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.386, allocations: 0 / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.386, allocations: 0 / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.386, allocations: 15.92 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.386, allocations: 0 / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.386, allocations: 4 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.386, allocations: 0 / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.3862, allocations: 128.5 kB / 0.5665 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-06/0.3862, allocations: 3.938 kB / 0.5665 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3862, allocations: 0 / 0.5665 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.378e-05/0.3862, allocations: 0 / 0.5665 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.466e-05/0.3862, allocations: 3.938 kB / 0.5665 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.3862, allocations: 4 kB / 0.5665 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.573e-05/0.3863, allocations: 79.31 kB / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3863, allocations: 0 / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004052/0.3867, allocations: 63.8 kB / 0.5666 GB, free: 14.57 MB / 414.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.001428/0.3881, allocations: 0.8983 MB / 0.5675 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001665/0.3883, allocations: 114.8 kB / 0.5676 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3883, allocations: 0 / 0.5676 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/0.3883, allocations: 85.05 kB / 0.5677 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.3885, allocations: 4 kB / 0.5677 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005081/0.389, allocations: 180.1 kB / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.72e-05/0.3891, allocations: 55.36 kB / 0.5679 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.959e-06/0.3891, allocations: 0 / 0.5679 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.3891, allocations: 11.44 kB / 0.5679 GB, free: 13.16 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3891, allocations: 0 / 0.5679 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.4156, allocations: 2.729 MB / 0.5706 GB, free: 10.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.29, allocations: 13.19 kB / 0.5706 GB, free: 10.58 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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: 15.170477187028155]