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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001806/0.001806, allocations: 109.1 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002196/0.002196, allocations: 203.6 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.5 MB / 258.2 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2446/0.2446, allocations: 46.94 MB / 361.6 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002329/0.002329, allocations: 79.88 kB / 0.4969 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3288, allocations: 66.09 MB / 0.5615 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001629/0.3305, allocations: 493 kB / 0.562 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.3329, allocations: 1.365 MB / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.709e-05/0.3329, allocations: 0 / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.3329, allocations: 0 / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.3331, allocations: 15.92 kB / 0.5633 GB, free: 2.441 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498: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.001203/0.3343, allocations: 255.7 kB / 0.5635 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.177e-05/0.3343, allocations: 4 kB / 0.5635 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.093e-05/0.3344, allocations: 7.984 kB / 0.5636 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.532e-05/0.3344, allocations: 7.984 kB / 0.5636 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.906e-05/0.3345, allocations: 11.94 kB / 0.5636 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-06/0.3345, allocations: 0 / 0.5636 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004344/0.3389, allocations: 0.7428 MB / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.318e-06/0.3389, allocations: 0 / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.224e-05/0.3389, allocations: 0 / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003196/0.3392, allocations: 185.7 kB / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3392, allocations: 0 / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3392, allocations: 0 / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.3392, allocations: 0 / 0.5645 GB, free: 1.367 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.0004368/0.3397, allocations: 311.7 kB / 0.5648 GB, free: 1.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3397, allocations: 15.97 kB / 0.5648 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.242e-05/0.3397, allocations: 8.125 kB / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.488e-05/0.3397, allocations: 30.75 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.3398, allocations: 0.9375 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.3399, allocations: 106.5 kB / 0.5649 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-06/0.3399, allocations: 384 / 0.5649 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-06/0.3399, allocations: 384 / 0.5649 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.796e-05/0.34, allocations: 34.02 kB / 0.565 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.34, allocations: 3.984 kB / 0.565 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.34, allocations: 0 / 0.565 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.34, allocations: 7.938 kB / 0.565 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.576e-05/0.34, allocations: 0 / 0.565 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.3401, allocations: 124.7 kB / 0.5651 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.839e-05/0.3402, allocations: 14.58 kB / 0.5651 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.503e-05/0.3402, allocations: 8.953 kB / 0.5651 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-06/0.3402, allocations: 0 / 0.5651 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.3403, allocations: 72.19 kB / 0.5652 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3403, allocations: 0 / 0.5652 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001973/0.3405, allocations: 67.34 kB / 0.5652 GB, free: 428 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.3405, allocations: 77.11 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.822e-05/0.3406, allocations: 97.84 kB / 0.5654 GB, free: 224 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.3406, allocations: 29.7 kB / 0.5654 GB, free: 188 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.53e-05/0.3407, allocations: 80.14 kB / 0.5655 GB, free: 104 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.275e-05/0.3407, allocations: 0 / 0.5655 GB, free: 104 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.3407, allocations: 13.97 kB / 0.5655 GB, free: 84 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3409, allocations: 314.8 kB / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.3409, allocations: 0 / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-06/0.3409, allocations: 0 / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.261e-05/0.3409, allocations: 68.25 kB / 0.5659 GB, free: 15.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3409, allocations: 0 / 0.5659 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.626e-05/0.341, allocations: 67.3 kB / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.3411, allocations: 37.64 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3411, allocations: 4.094 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3411, allocations: 0 / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.3411, allocations: 0 / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.3411, allocations: 0 / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/0.3411, allocations: 3.984 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.3411, allocations: 11.92 kB / 0.566 GB, free: 15.54 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.598e-05/0.3412, allocations: 135.5 kB / 0.5661 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.3412, allocations: 3.938 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.764e-05/0.3413, allocations: 7.156 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3413, allocations: 4 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3413, allocations: 0 / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3413, allocations: 0 / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.3414, allocations: 120.8 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3414, allocations: 3.984 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.444e-06/0.3414, allocations: 4 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3414, allocations: 3.938 kB / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.3414, allocations: 0 / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3414, allocations: 0 / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3414, allocations: 0 / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.3415, allocations: 98.77 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-06/0.3415, allocations: 11.88 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.3415, allocations: 0 / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.182e-05/0.3415, allocations: 0 / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.33e-05/0.3416, allocations: 0 / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.3416, allocations: 8 kB / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.218e-05/0.3416, allocations: 79.27 kB / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3416, allocations: 4.125 kB / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.3419, allocations: 63.8 kB / 0.5665 GB, free: 14.92 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.001184/0.3431, allocations: 0.8509 MB / 0.5674 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.3432, allocations: 67.33 kB / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3432, allocations: 0 / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.262e-05/0.3433, allocations: 63.47 kB / 0.5675 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.3434, allocations: 0 / 0.5675 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.3438, allocations: 142.5 kB / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.3441, allocations: 0.669 MB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.124e-05/0.3442, allocations: 0 / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.3442, allocations: 11.44 kB / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3442, allocations: 0 / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.3688, allocations: 2.687 MB / 0.5709 GB, free: 10.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.78, allocations: 12.11 kB / 0.5709 GB, free: 10.46 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.773816116969101]