Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001231/0.001231, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001374/0.001374, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.439/1.439, allocations: 230.5 MB / 258.2 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2393/0.2393, allocations: 46.93 MB / 361.6 MB, free: 4.168 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002421/0.002421, allocations: 75.88 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3267, allocations: 66.08 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001792/0.3285, allocations: 0.4888 MB / 0.562 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.3308, allocations: 1.365 MB / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.627e-05/0.3309, allocations: 0 / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.3309, allocations: 0 / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.3311, allocations: 11.94 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001185/0.3323, allocations: 263.2 kB / 0.5636 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.122e-05/0.3323, allocations: 8 kB / 0.5636 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.715e-05/0.3323, allocations: 4 kB / 0.5636 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.283e-05/0.3324, allocations: 3.984 kB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.994e-05/0.3324, allocations: 4 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.134e-06/0.3325, allocations: 3.938 kB / 0.5636 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004386/0.3368, allocations: 0.744 MB / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.3369, allocations: 11.98 kB / 0.5643 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.3369, allocations: 0 / 0.5643 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.3372, allocations: 173.7 kB / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3372, allocations: 0 / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3372, allocations: 0 / 0.5645 GB, free: 1.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.3373, 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.000511/0.3378, allocations: 315.7 kB / 0.5648 GB, free: 1.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3378, allocations: 12.03 kB / 0.5648 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.762e-05/0.3378, allocations: 34.69 kB / 0.5648 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.3379, allocations: 0.9375 kB / 0.5648 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.338, allocations: 110.5 kB / 0.5649 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.338, allocations: 4.312 kB / 0.5649 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.338, allocations: 384 / 0.5649 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.792e-05/0.3381, allocations: 30.27 kB / 0.565 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3381, allocations: 3.938 kB / 0.565 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.3381, allocations: 3.938 kB / 0.565 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3381, allocations: 8 kB / 0.565 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.423e-05/0.3382, allocations: 7.984 kB / 0.565 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.3383, allocations: 116.8 kB / 0.5651 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.215e-05/0.3384, allocations: 22.55 kB / 0.5651 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.3384, allocations: 4.859 kB / 0.5651 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.3384, allocations: 0 / 0.5651 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.537e-05/0.3385, allocations: 64.23 kB / 0.5652 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.282e-06/0.3385, allocations: 8.062 kB / 0.5652 GB, free: 500 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002044/0.3387, allocations: 67.34 kB / 0.5653 GB, free: 420 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.546e-05/0.3388, allocations: 81.05 kB / 0.5653 GB, free: 320 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.219e-05/0.3389, allocations: 97.84 kB / 0.5654 GB, free: 212 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.3389, allocations: 25.7 kB / 0.5655 GB, free: 180 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.3389, allocations: 80.14 kB / 0.5655 GB, free: 96 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.3389, allocations: 0 / 0.5655 GB, free: 96 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.339, allocations: 21.97 kB / 0.5656 GB, free: 68 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3391, allocations: 310.8 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.083e-05/0.3391, allocations: 0 / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.3392, allocations: 4 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.162e-05/0.3392, allocations: 64.25 kB / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3392, allocations: 0 / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.546e-05/0.3393, allocations: 71.3 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.3393, allocations: 33.64 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3393, allocations: 4.094 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3394, allocations: 0 / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.3394, allocations: 0 / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3394, allocations: 0 / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.3394, allocations: 4 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.3394, allocations: 0 / 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 0.0001041/0.3395, allocations: 135.5 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.3395, allocations: 7.938 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.154e-05/0.3395, allocations: 3.156 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3395, allocations: 7.938 kB / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3395, allocations: 0 / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.3395, allocations: 0 / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.3396, allocations: 124.8 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3396, allocations: 0 / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3396, allocations: 0 / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3396, allocations: 3.938 kB / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.3396, allocations: 0 / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3396, allocations: 4 kB / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3396, allocations: 0 / 0.5663 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.3398, allocations: 102.7 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.925e-06/0.3398, allocations: 0 / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.3398, allocations: 3.938 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.549e-05/0.3398, allocations: 7.984 kB / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/0.3398, allocations: 4 kB / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.3398, allocations: 0 / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.484e-05/0.3399, allocations: 79.27 kB / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3399, allocations: 4.125 kB / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003032/0.3402, allocations: 67.81 kB / 0.5666 GB, free: 14.91 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.001166/0.3413, allocations: 0.8423 MB / 0.5674 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.3415, allocations: 67.33 kB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3415, allocations: 0 / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.926e-05/0.3415, allocations: 59.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.000142/0.3417, allocations: 6.656 kB / 0.5675 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/0.3421, allocations: 134.5 kB / 0.5676 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3424, allocations: 0.6729 MB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.066e-05/0.3424, allocations: 0 / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.3425, allocations: 11.44 kB / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3425, allocations: 0 / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.3698, allocations: 2.551 MB / 0.5708 GB, free: 10.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.162/8.531, allocations: 13.12 kB / 0.5708 GB, free: 10.55 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.316775127779692] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.605066965799779 8.62333177 8.282201869 Calling exit ...