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.001751/0.001751, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.002508/0.002508, allocations: 219.3 kB / 23 MB, free: 5.578 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.524/1.524, allocations: 230.2 MB / 256.2 MB, free: 8.523 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.2533/0.2533, allocations: 46.9 MB / 359.4 MB, free: 4.887 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.00242/0.00242, allocations: 79.88 kB / 0.4941 GB, free: 9.012 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3269, allocations: 65.99 MB / 0.5586 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004917/0.3318, allocations: 3.062 MB / 0.5615 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.334, allocations: 1.075 MB / 0.5626 GB, free: 1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.3343, allocations: 4 kB / 0.5626 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002686/0.3346, allocations: 67.31 kB / 0.5627 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.3349, allocations: 123 kB / 0.5628 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007258/0.3356, allocations: 179.5 kB / 0.5629 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007076/0.3364, allocations: 453.8 kB / 0.5634 GB, free: 192 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.3366, allocations: 86.25 kB / 0.5635 GB, free: 100 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004598/0.3371, allocations: 159.4 kB / 0.5636 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.3376, allocations: 179.2 kB / 0.5638 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.3377, allocations: 32 kB / 0.5638 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002892/0.338, allocations: 51.98 kB / 0.5639 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.3381, allocations: 79.69 kB / 0.5639 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.3385, allocations: 191.1 kB / 0.5641 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.3395, allocations: 446.1 kB / 0.5645 GB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.3395, allocations: 0 / 0.5645 GB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3395, allocations: 0 / 0.5645 GB, free: 14.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.3395, allocations: 0 / 0.5645 GB, free: 14.98 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.001819/0.3413, allocations: 0.6625 MB / 0.5652 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.3414, allocations: 12.03 kB / 0.5652 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.3415, allocations: 82.64 kB / 0.5653 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.342, allocations: 68.64 kB / 0.5654 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007618/0.3428, allocations: 303.4 kB / 0.5656 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.733e-05/0.3429, allocations: 25.38 kB / 0.5657 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.343, allocations: 48.06 kB / 0.5657 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009899/0.344, allocations: 359.6 kB / 0.5661 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.496e-05/0.344, allocations: 4 kB / 0.5661 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.344, allocations: 16 kB / 0.5661 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.3441, allocations: 8 kB / 0.5661 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007513/0.3448, allocations: 223.5 kB / 0.5663 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.3485, allocations: 1.578 MB / 0.5678 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000918/0.3494, allocations: 307.6 kB / 0.5681 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.3496, allocations: 93.11 kB / 0.5682 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.3497, allocations: 8 kB / 0.5682 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.3497, allocations: 46.48 kB / 0.5683 GB, free: 10.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.705e-06/0.3497, allocations: 0 / 0.5683 GB, free: 10.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.001134/0.3509, allocations: 261.3 kB / 0.5685 GB, free: 10.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.351, allocations: 200 kB / 0.5687 GB, free: 10.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003933/0.3514, allocations: 234.6 kB / 0.5689 GB, free: 10.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.797e-05/0.3515, allocations: 33.7 kB / 0.569 GB, free: 10.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.3517, allocations: 220.4 kB / 0.5692 GB, free: 9.855 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3518, allocations: 115 kB / 0.5693 GB, free: 9.742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.352, allocations: 78.08 kB / 0.5694 GB, free: 9.656 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002344/0.3522, allocations: 338.8 kB / 0.5697 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.3525, allocations: 84.83 kB / 0.5698 GB, free: 9.234 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004862/0.353, allocations: 253.7 kB / 0.57 GB, free: 8.914 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008239/0.3538, allocations: 357.1 kB / 0.5703 GB, free: 8.488 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3538, allocations: 4 kB / 0.5703 GB, free: 8.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001114/0.355, allocations: 385 kB / 0.5707 GB, free: 8.102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.355, allocations: 4 kB / 0.5707 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.355, allocations: 8 kB / 0.5707 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.355, allocations: 8 kB / 0.5707 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006061/0.3556, allocations: 103.8 kB / 0.5708 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.293e-05/0.3557, allocations: 11.98 kB / 0.5708 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.3561, allocations: 48.11 kB / 0.5709 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/0.3561, allocations: 20.31 kB / 0.5709 GB, free: 7.902 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.0003112/0.3564, allocations: 161.6 kB / 0.5711 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.3567, allocations: 31.81 kB / 0.5711 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003012/0.357, allocations: 99.31 kB / 0.5712 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.357, allocations: 4 kB / 0.5712 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.357, allocations: 320 / 0.5712 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.357, allocations: 4 kB / 0.5712 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.3583, allocations: 357.3 kB / 0.5715 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3583, allocations: 4 kB / 0.5715 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006531/0.3589, allocations: 79.89 kB / 0.5716 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/0.3589, allocations: 4 kB / 0.5716 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.359, allocations: 8 kB / 0.5716 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.359, allocations: 0 / 0.5716 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.359, allocations: 4 kB / 0.5716 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.3603, allocations: 0.7789 MB / 0.5724 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.3604, allocations: 104.9 kB / 0.5725 GB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.86e-05/0.3605, allocations: 8.094 kB / 0.5725 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.361, allocations: 11.92 kB / 0.5725 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.3611, allocations: 23.97 kB / 0.5725 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.3612, allocations: 19.92 kB / 0.5726 GB, free: 6.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000253/0.3614, allocations: 170 kB / 0.5727 GB, free: 5.945 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3614, allocations: 0 / 0.5727 GB, free: 5.945 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001128/0.3625, allocations: 95.78 kB / 0.5728 GB, free: 5.852 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.001741/0.3643, allocations: 1.3 MB / 0.5741 GB, free: 4.523 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000782/0.3651, allocations: 225 kB / 0.5743 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.3651, allocations: 4 kB / 0.5743 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.3653, allocations: 91.83 kB / 0.5744 GB, free: 4.211 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.367, allocations: 76.25 kB / 0.5745 GB, free: 4.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008527/0.3755, allocations: 4.098 MB / 0.5785 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.3761, allocations: 0.7912 MB / 0.5792 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002667/0.3764, allocations: 42.95 kB / 0.5793 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.3766, allocations: 111.3 kB / 0.5794 GB, free: 14.82 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3766, allocations: 0 / 0.5794 GB, free: 14.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.4179, allocations: 6.424 MB / 0.5857 GB, free: 8.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.834/9.252, allocations: 3.984 kB / 0.5857 GB, free: 8.496 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 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.108008536015404] 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'] 9.325869147025514 9.340894575 8.99821595 Calling exit ...