Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.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.001922/0.001922, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002722/0.002722, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.47/1.47, allocations: 230.5 MB / 258.2 MB, free: 8.039 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.2314/0.2314, allocations: 46.94 MB / 361.6 MB, free: 4.203 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.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",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.002381/0.002381, allocations: 75.88 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3424, allocations: 66.08 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003129/0.3455, allocations: 1.7 MB / 0.5632 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3466, allocations: 0.6087 MB / 0.5638 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.457e-05/0.3467, allocations: 4 kB / 0.5638 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.3468, allocations: 11.86 kB / 0.5638 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.692e-05/0.3468, allocations: 11.81 kB / 0.5638 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.3471, allocations: 71.8 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.3473, allocations: 111.7 kB / 0.564 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3475, allocations: 35.2 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.3476, allocations: 63.77 kB / 0.564 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.3478, allocations: 43.78 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.3478, allocations: 8 kB / 0.5641 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.424e-05/0.3479, allocations: 23.98 kB / 0.5641 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.3479, allocations: 23.92 kB / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.84e-05/0.348, allocations: 55.66 kB / 0.5642 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.3482, allocations: 123.5 kB / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3482, allocations: 0 / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3482, allocations: 0 / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.3482, allocations: 0 / 0.5643 GB, free: 1.43 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007805/0.349, allocations: 379.5 kB / 0.5647 GB, free: 1.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.349, allocations: 8.031 kB / 0.5647 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.339e-05/0.3491, allocations: 42.73 kB / 0.5647 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.3493, allocations: 20.88 kB / 0.5647 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.3495, allocations: 158.8 kB / 0.5649 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.3495, allocations: 8.375 kB / 0.5649 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.3496, allocations: 15.94 kB / 0.5649 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.3498, allocations: 89.64 kB / 0.565 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3498, allocations: 0 / 0.565 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.3498, allocations: 8 kB / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3498, allocations: 0 / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.35, allocations: 51.95 kB / 0.5651 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005972/0.3506, allocations: 355.6 kB / 0.5654 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.3507, allocations: 62.48 kB / 0.5655 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.107e-05/0.3508, allocations: 28.98 kB / 0.5655 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.3508, allocations: 0 / 0.5655 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.351, allocations: 103.3 kB / 0.5656 GB, free: 15.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.351, allocations: 0 / 0.5656 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003606/0.3514, allocations: 129.5 kB / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.3514, allocations: 59.34 kB / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.3516, allocations: 149.8 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.3516, allocations: 29.7 kB / 0.5659 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.704e-05/0.3517, allocations: 104.2 kB / 0.566 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3517, allocations: 31.75 kB / 0.5661 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.3518, allocations: 37.7 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3519, allocations: 322.8 kB / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-05/0.352, allocations: 27.92 kB / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.3521, allocations: 86.52 kB / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.3523, allocations: 127.6 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3523, allocations: 0 / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002663/0.3526, allocations: 141.3 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.3526, allocations: 4 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3526, allocations: 4 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3526, allocations: 8.312 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.3527, allocations: 27.92 kB / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3528, allocations: 4 kB / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.626e-05/0.3528, allocations: 11.94 kB / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.3528, allocations: 4 kB / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001181/0.353, allocations: 129.8 kB / 0.567 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.353, allocations: 23.83 kB / 0.567 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.22e-05/0.353, allocations: 8.719 kB / 0.567 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.353, allocations: 4 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.353, allocations: 4 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.353, allocations: 0 / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.3532, allocations: 172.7 kB / 0.5672 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3532, allocations: 0 / 0.5672 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.3533, allocations: 24.3 kB / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3533, allocations: 0 / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.3533, allocations: 0 / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3533, allocations: 0 / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3533, allocations: 3.938 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.3537, allocations: 172.9 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.27e-05/0.3537, allocations: 15.91 kB / 0.5674 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.3537, allocations: 7.938 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.336e-05/0.3538, allocations: 0 / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.974e-05/0.3538, allocations: 11.98 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3538, allocations: 4 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.504e-05/0.3539, allocations: 110.2 kB / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3539, allocations: 4.062 kB / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.3542, allocations: 23.94 kB / 0.5675 GB, free: 13.81 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006346/0.3548, allocations: 0.706 MB / 0.5682 GB, free: 13.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002122/0.355, allocations: 75.95 kB / 0.5683 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.355, allocations: 0 / 0.5683 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.602e-05/0.3551, allocations: 31.92 kB / 0.5683 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.3553, allocations: 24.3 kB / 0.5683 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.3574, allocations: 1.699 MB / 0.57 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3578, allocations: 0.7047 MB / 0.5707 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.175e-05/0.3578, allocations: 16.34 kB / 0.5707 GB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.496e-05/0.3579, allocations: 35.42 kB / 0.5707 GB, free: 10.34 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3579, allocations: 0 / 0.5707 GB, free: 10.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.3861, allocations: 2.52 MB / 0.5732 GB, free: 7.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.715, allocations: 11.3 kB / 0.5732 GB, free: 7.875 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.55329332081601] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean1.x', 'rootMeanSquare.mean.x', 'mean1.y', 'rootMeanSquare.mean.y'] 8.78793036704883 8.812835423 8.459659855 Calling exit ...