Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.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.001483/0.001483, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001681/0.001681, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.521/1.521, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2354/0.2354, allocations: 46.89 MB / 357.4 MB, free: 10.5 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.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",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.002375/0.002375, allocations: 83.84 kB / 0.4912 GB, free: 8.656 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1324, allocations: 65.99 MB / 0.5556 GB, free: 6.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001559/0.134, allocations: 485 kB / 0.5561 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000625/0.1346, allocations: 263.6 kB / 0.5564 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.118e-05/0.1346, allocations: 0 / 0.5564 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.1346, allocations: 0 / 0.5564 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.1346, allocations: 4 kB / 0.5564 GB, free: 5.801 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.135, allocations: 47.83 kB / 0.5564 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.135, allocations: 0 / 0.5564 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.386e-05/0.135, allocations: 0 / 0.5564 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.059e-05/0.1351, allocations: 11.97 kB / 0.5564 GB, free: 5.742 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.188e-05/0.1351, allocations: 0 / 0.5564 GB, free: 5.742 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.135e-06/0.1351, allocations: 4 kB / 0.5564 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.1353, allocations: 67.95 kB / 0.5565 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.131e-06/0.1353, allocations: 0 / 0.5565 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.69e-05/0.1353, allocations: 0 / 0.5565 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1354, allocations: 63.8 kB / 0.5565 GB, free: 5.609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1354, allocations: 0 / 0.5565 GB, free: 5.609 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1354, allocations: 0 / 0.5565 GB, free: 5.609 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1354, allocations: 0 / 0.5565 GB, free: 5.609 MB / 414.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.0003482/0.1358, allocations: 349.2 kB / 0.5569 GB, free: 5.211 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1358, allocations: 8.031 kB / 0.5569 GB, free: 5.203 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.1358, allocations: 38.75 kB / 0.5569 GB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.007e-05/0.1359, allocations: 0.9375 kB / 0.5569 GB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.136, allocations: 172.3 kB / 0.5571 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.136, allocations: 384 / 0.5571 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-06/0.136, allocations: 384 / 0.5571 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.775e-05/0.1361, allocations: 34.25 kB / 0.5571 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1361, allocations: 3.938 kB / 0.5571 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.1361, allocations: 0 / 0.5571 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1361, allocations: 0 / 0.5571 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.449e-05/0.1361, allocations: 0 / 0.5571 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.1362, allocations: 149.7 kB / 0.5573 GB, free: 4.711 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.315e-05/0.1363, allocations: 22.5 kB / 0.5573 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.613e-05/0.1363, allocations: 8.859 kB / 0.5573 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.1363, allocations: 4.094 kB / 0.5573 GB, free: 4.664 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.1363, allocations: 60.2 kB / 0.5574 GB, free: 4.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1363, allocations: 0 / 0.5574 GB, free: 4.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001629/0.1365, allocations: 71.28 kB / 0.5574 GB, free: 4.508 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.1366, allocations: 81.09 kB / 0.5575 GB, free: 4.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.925e-05/0.1366, allocations: 97.75 kB / 0.5576 GB, free: 4.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.1366, allocations: 25.7 kB / 0.5576 GB, free: 4.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.1367, allocations: 85.83 kB / 0.5577 GB, free: 4.188 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.378e-05/0.1367, allocations: 4 kB / 0.5577 GB, free: 4.184 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.1367, allocations: 9.719 kB / 0.5577 GB, free: 4.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1368, allocations: 310.8 kB / 0.558 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.607e-06/0.1369, allocations: 4.125 kB / 0.558 GB, free: 3.852 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.1369, allocations: 4 kB / 0.558 GB, free: 3.848 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.1369, allocations: 60.27 kB / 0.5581 GB, free: 3.773 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1369, allocations: 0 / 0.5581 GB, free: 3.773 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.476e-05/0.137, allocations: 63.39 kB / 0.5581 GB, free: 3.699 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.137, allocations: 35.42 kB / 0.5582 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.137, allocations: 3.938 kB / 0.5582 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.137, allocations: 0 / 0.5582 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.137, allocations: 8.031 kB / 0.5582 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.137, allocations: 0 / 0.5582 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.391e-05/0.1371, allocations: 0 / 0.5582 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.1371, allocations: 4 kB / 0.5582 GB, free: 3.645 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 8.803e-05/0.1371, allocations: 135.5 kB / 0.5583 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.1372, allocations: 0 / 0.5583 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.014e-05/0.1372, allocations: 7.062 kB / 0.5583 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1372, allocations: 7.984 kB / 0.5583 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1372, allocations: 0 / 0.5583 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-06/0.1372, allocations: 4 kB / 0.5583 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.1373, allocations: 149.7 kB / 0.5585 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1373, allocations: 0 / 0.5585 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1373, allocations: 0 / 0.5585 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1373, allocations: 4 kB / 0.5585 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.1373, allocations: 7.938 kB / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1373, allocations: 0 / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1373, allocations: 0 / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.1374, allocations: 94.83 kB / 0.5586 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.1375, allocations: 81.05 kB / 0.5587 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1375, allocations: 3.938 kB / 0.5587 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.1375, allocations: 3.938 kB / 0.5587 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.1375, allocations: 0 / 0.5587 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-06/0.1375, allocations: 4 kB / 0.5587 GB, free: 3.047 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.625e-05/0.1375, allocations: 75.28 kB / 0.5587 GB, free: 2.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1375, allocations: 3.938 kB / 0.5587 GB, free: 2.969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002225/0.1378, allocations: 27.92 kB / 0.5588 GB, free: 2.941 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.0009839/0.1387, allocations: 0.7908 MB / 0.5595 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.999e-05/0.1388, allocations: 67.34 kB / 0.5596 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1388, allocations: 0 / 0.5596 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.563e-05/0.1389, allocations: 55.41 kB / 0.5597 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.139, allocations: 0 / 0.5597 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.1393, allocations: 126.8 kB / 0.5598 GB, free: 1.863 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.1396, allocations: 0.669 MB / 0.5604 GB, free: 1.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.1396, allocations: 0 / 0.5604 GB, free: 1.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.384e-05/0.1396, allocations: 7.438 kB / 0.5604 GB, free: 1.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1396, allocations: 0 / 0.5604 GB, free: 1.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.1617, allocations: 1.643 MB / 0.562 GB, free: 15.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.136, allocations: 5.906 kB / 0.562 GB, free: 15.59 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.05571832600981] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.208182635717094 8.240394055 8.099408533 Calling exit ...