Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.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.001909/0.001909, 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.002649/0.002649, allocations: 211.9 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.499/1.499, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.246/0.246, allocations: 46.93 MB / 361.6 MB, free: 4.184 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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",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.003406/0.003406, allocations: 79.86 kB / 0.497 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3406, allocations: 66.09 MB / 0.5615 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004512/0.3451, allocations: 3.05 MB / 0.5645 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.3471, allocations: 1.091 MB / 0.5655 GB, free: 120 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.3472, allocations: 11.94 kB / 0.5656 GB, free: 108 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.3474, allocations: 55.39 kB / 0.5656 GB, free: 52 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.3477, allocations: 131 kB / 0.5657 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.3482, allocations: 167.6 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005/0.3487, allocations: 461.7 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.3489, allocations: 85.89 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.3491, allocations: 163.4 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.3494, allocations: 179.2 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.204e-05/0.3495, allocations: 32 kB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.3496, allocations: 51.98 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.3497, allocations: 79.69 kB / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.3499, allocations: 195.1 kB / 0.5671 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005248/0.3504, allocations: 442.2 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3504, allocations: 0 / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3504, allocations: 0 / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.3504, allocations: 0 / 0.5675 GB, free: 14.09 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001141/0.3516, allocations: 0.5988 MB / 0.5681 GB, free: 13.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3516, allocations: 8.031 kB / 0.5681 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.01e-05/0.3517, allocations: 70.72 kB / 0.5682 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002966/0.352, allocations: 64.64 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.3524, allocations: 245.6 kB / 0.5685 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.3525, allocations: 21.38 kB / 0.5685 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.578e-05/0.3525, allocations: 48.08 kB / 0.5685 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.3531, allocations: 351.6 kB / 0.5689 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.3532, allocations: 15.92 kB / 0.5689 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.3532, allocations: 16 kB / 0.5689 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3532, allocations: 8 kB / 0.5689 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004687/0.3537, allocations: 215.8 kB / 0.5691 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.356, allocations: 1.522 MB / 0.5706 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006155/0.3566, allocations: 295.7 kB / 0.5709 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.3568, allocations: 97.09 kB / 0.571 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.3568, allocations: 11.92 kB / 0.571 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.3569, allocations: 34.72 kB / 0.571 GB, free: 10.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3569, allocations: 4 kB / 0.571 GB, free: 10.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007278/0.3576, allocations: 281.9 kB / 0.5713 GB, free: 9.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.3577, allocations: 191.9 kB / 0.5715 GB, free: 9.711 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.358, allocations: 229.9 kB / 0.5717 GB, free: 9.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.358, allocations: 33.7 kB / 0.5717 GB, free: 9.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.3582, allocations: 220.2 kB / 0.5719 GB, free: 9.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3583, allocations: 119.2 kB / 0.572 GB, free: 9.102 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.3584, allocations: 74.08 kB / 0.5721 GB, free: 9.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3586, allocations: 342.8 kB / 0.5724 GB, free: 8.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.3588, allocations: 80.83 kB / 0.5725 GB, free: 8.598 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.3591, allocations: 245.8 kB / 0.5728 GB, free: 8.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005268/0.3597, allocations: 361.1 kB / 0.5731 GB, free: 7.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3597, allocations: 4 kB / 0.5731 GB, free: 7.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006662/0.3603, allocations: 380.8 kB / 0.5735 GB, free: 7.473 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3604, allocations: 10.19 kB / 0.5735 GB, free: 7.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3604, allocations: 8.875 kB / 0.5735 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.3604, allocations: 15.94 kB / 0.5735 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.3608, allocations: 107.8 kB / 0.5736 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.3608, allocations: 11.98 kB / 0.5736 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.361, allocations: 43.73 kB / 0.5737 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.3611, allocations: 16 kB / 0.5737 GB, free: 7.266 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001784/0.3612, allocations: 162.5 kB / 0.5738 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3614, allocations: 35.8 kB / 0.5739 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.3616, allocations: 91.33 kB / 0.5739 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.3616, allocations: 8.094 kB / 0.574 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3616, allocations: 7.938 kB / 0.574 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3616, allocations: 0 / 0.574 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006974/0.3623, allocations: 324.4 kB / 0.5743 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3623, allocations: 4 kB / 0.5743 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.3627, allocations: 83.89 kB / 0.5744 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.3627, allocations: 4 kB / 0.5744 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.3628, allocations: 8 kB / 0.5744 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3628, allocations: 0 / 0.5744 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3628, allocations: 4 kB / 0.5744 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008038/0.3636, allocations: 0.7663 MB / 0.5751 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.3636, allocations: 31.8 kB / 0.5751 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.554e-05/0.3637, allocations: 15.98 kB / 0.5752 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.364, allocations: 8 kB / 0.5752 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.364, allocations: 15.97 kB / 0.5752 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.3641, allocations: 19.92 kB / 0.5752 GB, free: 5.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.3642, allocations: 165.2 kB / 0.5754 GB, free: 5.445 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3642, allocations: 0 / 0.5754 GB, free: 5.445 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000596/0.3648, allocations: 99.78 kB / 0.5755 GB, free: 5.348 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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 Backend phase and start with SimCode phase: time 0.001128/0.3659, allocations: 1.307 MB / 0.5767 GB, free: 4.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.3664, allocations: 223.9 kB / 0.5769 GB, free: 3.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3664, allocations: 0 / 0.5769 GB, free: 3.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.3666, allocations: 93.33 kB / 0.577 GB, free: 3.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008793/0.3675, allocations: 81.3 kB / 0.5771 GB, free: 3.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005173/0.3727, allocations: 4.093 MB / 0.5811 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.3731, allocations: 0.795 MB / 0.5819 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.3733, allocations: 34.95 kB / 0.5819 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.3735, allocations: 111.4 kB / 0.582 GB, free: 14.32 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3735, allocations: 0 / 0.582 GB, free: 14.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03233/0.4058, allocations: 6.681 MB / 0.5885 GB, free: 7.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.687/9.092, allocations: 15.44 kB / 0.5886 GB, free: 7.73 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.042007092852145] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.phi', 'inertia1.w', 'inertia2.phi', 'inertia2.w', 'inertia3.phi', 'inertia3.w', 'inertia4.phi', 'inertia4.w', 'inertia5.phi', 'inertia5.w', 'inertia6.phi', 'inertia6.w'] 9.172423555981368 9.199077861 8.843889998 Calling exit ...