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.001379/0.001379, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002344/0.002344, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2314/0.2314, allocations: 46.96 MB / 360.9 MB, free: 4.008 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 67.91 kB / 0.4961 GB, free: 7.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.312, allocations: 66.04 MB / 0.5606 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001582/0.3136, allocations: 493 kB / 0.561 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002301/0.3159, allocations: 1.346 MB / 0.5624 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.39e-05/0.3159, allocations: 4 kB / 0.5624 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.3159, allocations: 0 / 0.5624 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.3161, allocations: 11.94 kB / 0.5624 GB, free: 2.371 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.001177/0.3173, allocations: 264.4 kB / 0.5626 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.726e-05/0.3173, allocations: 0 / 0.5626 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.389e-05/0.3174, allocations: 4 kB / 0.5626 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.057e-05/0.3174, allocations: 0 / 0.5626 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.051e-05/0.3175, allocations: 4 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-06/0.3175, allocations: 4 kB / 0.5626 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004199/0.3217, allocations: 0.7185 MB / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.3217, allocations: 0 / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.156e-05/0.3217, allocations: 3.938 kB / 0.5633 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003415/0.3221, allocations: 177.6 kB / 0.5635 GB, free: 1.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3221, allocations: 4 kB / 0.5635 GB, free: 1.336 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.3221, allocations: 4 kB / 0.5635 GB, free: 1.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3221, allocations: 0 / 0.5635 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.0004471/0.3225, allocations: 311.7 kB / 0.5638 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3226, allocations: 8.031 kB / 0.5638 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.313e-05/0.3226, allocations: 34.75 kB / 0.5639 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.3226, allocations: 0.9375 kB / 0.5639 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.3227, allocations: 102.5 kB / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.3227, allocations: 384 / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.3228, allocations: 4.375 kB / 0.564 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.3229, allocations: 67.28 kB / 0.564 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3229, allocations: 4 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.3229, allocations: 3.984 kB / 0.564 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.3229, allocations: 3.984 kB / 0.564 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.074e-05/0.3229, allocations: 25.7 kB / 0.5641 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.3231, allocations: 120.8 kB / 0.5642 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.278e-05/0.3231, allocations: 48.31 kB / 0.5642 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.3232, allocations: 34.55 kB / 0.5643 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.3232, allocations: 15.75 kB / 0.5643 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.3233, allocations: 60.33 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.3233, allocations: 4 kB / 0.5643 GB, free: 340 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002219/0.3235, allocations: 114.8 kB / 0.5644 GB, free: 200 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.3235, allocations: 81.09 kB / 0.5645 GB, free: 100 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.3236, allocations: 93.86 kB / 0.5646 GB, free: 16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3237, allocations: 25.7 kB / 0.5646 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.987e-05/0.3237, allocations: 80.14 kB / 0.5647 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.3237, allocations: 8 kB / 0.5647 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.3237, allocations: 9.719 kB / 0.5647 GB, free: 15.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3239, allocations: 314.8 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.673e-05/0.3239, allocations: 33.94 kB / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.271e-05/0.3239, allocations: 29.64 kB / 0.5651 GB, free: 15.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.612e-05/0.324, allocations: 64.27 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.324, allocations: 0 / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.3241, allocations: 101 kB / 0.5652 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/0.3241, allocations: 29.7 kB / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3242, allocations: 0 / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3242, allocations: 0 / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3242, allocations: 0 / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.3242, allocations: 0 / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.3242, allocations: 8.094 kB / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3242, allocations: 0 / 0.5653 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 9.951e-05/0.3243, allocations: 135.5 kB / 0.5654 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.3243, allocations: 7.938 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.3243, allocations: 11.08 kB / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3243, allocations: 0 / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3243, allocations: 0 / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3243, allocations: 0 / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.3244, allocations: 116.8 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3244, allocations: 3.938 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3244, allocations: 4 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3244, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.3245, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.3245, allocations: 7.984 kB / 0.5656 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3245, allocations: 0 / 0.5656 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.3246, allocations: 116.5 kB / 0.5657 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.485e-06/0.3246, allocations: 7.922 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.3246, allocations: 4 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.3246, allocations: 0 / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.3247, allocations: 4 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.3247, allocations: 4.031 kB / 0.5657 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.224e-05/0.3247, allocations: 83.22 kB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3247, allocations: 0 / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.325, allocations: 67.73 kB / 0.5658 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.001163/0.3262, allocations: 0.8944 MB / 0.5667 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.3263, allocations: 122.8 kB / 0.5668 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3263, allocations: 0 / 0.5668 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.565e-05/0.3264, allocations: 85.05 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.3265, allocations: 4.125 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.3269, allocations: 164.2 kB / 0.5671 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.133e-05/0.327, allocations: 63.28 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.748e-06/0.327, allocations: 4 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.327, allocations: 7.438 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.327, allocations: 0 / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.3592, allocations: 3.072 MB / 0.5701 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.71, allocations: 6.438 kB / 0.5701 GB, free: 10.23 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: 14.55493007414043]