Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.001641/0.001641, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.002101/0.002101, allocations: 214 kB / 23 MB, free: 5.605 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.415/1.415, allocations: 230.2 MB / 256.2 MB, free: 8.738 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.2156/0.2156, allocations: 46.88 MB / 359.4 MB, free: 4.961 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.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.002284/0.002284, allocations: 75.86 kB / 0.4941 GB, free: 9.039 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3208, allocations: 65.99 MB / 0.5586 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01265/0.3334, allocations: 10.43 MB / 0.5688 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008153/0.3416, allocations: 3.925 MB / 0.5726 GB, free: 6.785 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.343, allocations: 63.75 kB / 0.5727 GB, free: 6.723 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004073/0.347, allocations: 2.106 MB / 0.5747 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.3514, allocations: 1.7 MB / 0.5764 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.353, allocations: 0.7018 MB / 0.5771 GB, free: 2.199 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005366/0.3584, allocations: 4.008 MB / 0.581 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.3608, allocations: 1.946 MB / 0.5829 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.3626, allocations: 1.304 MB / 0.5841 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.3652, allocations: 2.005 MB / 0.5861 GB, free: 8.867 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005217/0.3657, allocations: 268 kB / 0.5864 GB, free: 8.605 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002033/0.3677, allocations: 1.209 MB / 0.5875 GB, free: 7.395 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001645/0.3694, allocations: 1.71 MB / 0.5892 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002085/0.3715, allocations: 1.957 MB / 0.5911 GB, free: 3.711 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007074/0.3785, allocations: 6.346 MB / 0.5973 GB, free: 13.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3786, allocations: 0 / 0.5973 GB, free: 13.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3786, allocations: 0 / 0.5973 GB, free: 13.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.3787, allocations: 0 / 0.5973 GB, free: 13.34 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009566/0.3882, allocations: 4.445 MB / 0.6017 GB, free: 8.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3883, allocations: 8.031 kB / 0.6017 GB, free: 8.812 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008044/0.3891, allocations: 0.6288 MB / 0.6023 GB, free: 8.172 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08637/0.4755, allocations: 7.059 MB / 0.6092 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006299/0.4818, allocations: 2.625 MB / 0.6117 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.4819, allocations: 197.3 kB / 0.6119 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008379/0.4828, allocations: 271.8 kB / 0.6122 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/0.4972, allocations: 8.529 MB / 0.6205 GB, free: 4.789 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.4973, allocations: 43.69 kB / 0.6206 GB, free: 4.746 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003377/0.4977, allocations: 123.9 kB / 0.6207 GB, free: 4.625 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002893/0.5006, allocations: 1.743 MB / 0.6224 GB, free: 2.879 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/0.5143, allocations: 7.159 MB / 0.6294 GB, free: 11.71 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04225/0.5565, allocations: 33.87 MB / 0.6624 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009074/0.5656, allocations: 3.289 MB / 0.6656 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.568, allocations: 1.522 MB / 0.6671 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.5798, allocations: 7.313 MB / 0.6743 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.5798, allocations: 47.56 kB / 0.6743 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=151): time 4.428e-06/0.5798, allocations: 0 / 0.6743 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=188): time 0.06344/0.6432, allocations: 19.22 MB / 0.6931 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.6434, allocations: 205.2 kB / 0.6933 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005417/0.6488, allocations: 3.749 MB / 0.6969 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003188/0.6491, allocations: 57.69 kB / 0.697 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00228/0.6514, allocations: 2.925 MB / 0.6999 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008576/0.6523, allocations: 0.7481 MB / 0.7006 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/0.6539, allocations: 1.175 MB / 0.7017 GB, free: 15.85 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.654, allocations: 309.1 kB / 0.702 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003224/0.6572, allocations: 2.1 MB / 0.7041 GB, free: 13.44 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006125/0.6633, allocations: 5.652 MB / 0.7096 GB, free: 6.012 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.6742, allocations: 8.42 MB / 0.7178 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/0.6743, allocations: 36 kB / 0.7179 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0183/0.6926, allocations: 8.696 MB / 0.7264 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.723e-05/0.6927, allocations: 60 kB / 0.7264 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.6928, allocations: 124 kB / 0.7265 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005067/0.6979, allocations: 1.392 MB / 0.7279 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/0.7025, allocations: 1.306 MB / 0.7292 GB, free: 220 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2626/0.965, allocations: 9.189 MB / 0.7381 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/0.9691, allocations: 306.2 kB / 0.7384 GB, free: 148.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007116/0.9698, allocations: 359.6 kB / 0.7388 GB, free: 148.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 691 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002452/0.9722, allocations: 1.895 MB / 0.7406 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005306/0.9727, allocations: 357.3 kB / 0.741 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007254/0.98, allocations: 3.745 MB / 0.7446 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/0.98, allocations: 20.84 kB / 0.7446 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.9801, allocations: 9.922 kB / 0.7446 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.9801, allocations: 13.25 kB / 0.7447 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/0.9938, allocations: 8.135 MB / 0.7526 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.9939, allocations: 2.25 kB / 0.7526 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.995, allocations: 251.6 kB / 0.7528 GB, free: 142.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003988/0.999, allocations: 1.18 MB / 0.754 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/0.9992, allocations: 31.98 kB / 0.754 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009666/1.009, allocations: 8.47 MB / 0.7623 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/1.009, allocations: 8.688 kB / 0.7623 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009443/1.018, allocations: 6.294 MB / 0.7685 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007991/1.019, allocations: 393.5 kB / 0.7688 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003958/1.02, allocations: 28 kB / 0.7689 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/1.021, allocations: 94.98 kB / 0.7689 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002911/1.021, allocations: 109.1 kB / 0.7691 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/1.021, allocations: 51.98 kB / 0.7691 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002575/1.024, allocations: 2.32 MB / 0.7714 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/1.024, allocations: 0 / 0.7714 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003803/1.028, allocations: 0.9558 MB / 0.7723 GB, free: 123.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009204/1.037, allocations: 6.985 MB / 0.7791 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00669/1.043, allocations: 5.029 MB / 0.784 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/1.043, allocations: 4 kB / 0.784 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001943/1.045, allocations: 1.612 MB / 0.7856 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/1.048, allocations: 412.2 kB / 0.786 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.053/1.101, allocations: 44.35 MB / 0.8293 GB, free: 59.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002499/1.103, allocations: 2.961 MB / 0.8322 GB, free: 56.47 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003368/1.106, allocations: 1.811 MB / 0.834 GB, free: 54.65 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/1.108, allocations: 1.655 MB / 0.8356 GB, free: 53 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/1.108, allocations: 0 / 0.8356 GB, free: 53 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1388/1.247, allocations: 67.78 MB / 0.9018 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.37/27.62, allocations: 18.06 kB / 0.9018 GB, free: 1.535 MB / 0.5762 GB " [Timeout remaining time 632] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.422140681010205] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute.phi', 'revolute.w'] 27.744698399008485 27.767457727 27.384488225 Calling exit ...