Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 180.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.3 MB / 236 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009065/0.000906, allocations: 94.41 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2131/0.2131, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.548e-05/3.574e-05, allocations: 4.219 kB / 451.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1289, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4601/0.5891, allocations: 114.6 MB / 0.6138 GB, free: 6.551 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.5894, allocations: 79.89 kB / 0.6138 GB, free: 6.473 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7455/1.335, allocations: 137.9 MB / 0.7485 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.406e-06/1.335, allocations: 4 kB / 0.7485 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003904/1.335, allocations: 137.8 kB / 0.7487 GB, free: 113.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02406/1.359, allocations: 7.035 MB / 0.7555 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/1.359, allocations: 10.5 kB / 0.7556 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00515/1.365, allocations: 1.149 MB / 0.7567 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03156/1.396, allocations: 7.558 MB / 0.7641 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.024/1.42, allocations: 9.193 MB / 0.773 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005955/1.421, allocations: 499.2 kB / 0.7735 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003743/1.425, allocations: 0.653 MB / 0.7742 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03372/1.458, allocations: 16.57 MB / 0.7903 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/1.459, allocations: 101.5 kB / 0.7904 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001823/1.461, allocations: 316 kB / 0.7907 GB, free: 102 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002299/1.463, allocations: 1.587 MB / 0.7923 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02839/1.491, allocations: 13.51 MB / 0.8055 GB, free: 94.36 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07953/1.571, allocations: 74.32 MB / 0.8781 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/1.592, allocations: 7.704 MB / 0.8856 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004822/1.597, allocations: 3.971 MB / 0.8895 GB, free: 9.551 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03003/1.627, allocations: 18.64 MB / 0.9077 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.121e-05/1.627, allocations: 64.5 kB / 0.9077 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 5.681e-06/1.627, allocations: 0 / 0.9077 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370): time 0.4954/2.122, allocations: 38.73 MB / 0.9456 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/2.123, allocations: 270.6 kB / 0.9458 GB, free: 117.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01356/2.136, allocations: 5.258 MB / 0.9509 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/2.137, allocations: 87.06 kB / 0.951 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003843/2.141, allocations: 4.766 MB / 0.9557 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002135/2.143, allocations: 1.359 MB / 0.957 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007941/2.144, allocations: 191.2 kB / 0.9572 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004665/2.145, allocations: 0.6906 MB / 0.9579 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005298/2.15, allocations: 3.669 MB / 0.9614 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007821/2.158, allocations: 8.872 MB / 0.9701 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00836/2.166, allocations: 5.585 MB / 0.9756 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001375/2.166, allocations: 56.69 kB / 0.9756 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0337/2.2, allocations: 15.87 MB / 0.9911 GB, free: 97.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003203/2.2, allocations: 82.84 kB / 0.9912 GB, free: 97.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004321/2.201, allocations: 183.9 kB / 0.9914 GB, free: 97.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/2.214, allocations: 4.013 MB / 0.9953 GB, free: 97.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008262/2.222, allocations: 2.049 MB / 0.9973 GB, free: 97.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03084/2.253, allocations: 20.78 MB / 1.018 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009956/2.263, allocations: 0.5528 MB / 1.018 GB, free: 82.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002521/2.266, allocations: 0.5322 MB / 1.019 GB, free: 81.81 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004329/2.27, allocations: 0.8046 MB / 1.019 GB, free: 81.01 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002248/2.272, allocations: 0.5747 MB / 1.02 GB, free: 80.43 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02261/2.295, allocations: 9.449 MB / 1.029 GB, free: 73.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.632e-05/2.295, allocations: 36 kB / 1.029 GB, free: 73.11 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.576e-05/2.295, allocations: 20 kB / 1.029 GB, free: 73.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-05/2.295, allocations: 24.83 kB / 1.029 GB, free: 73.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04383/2.339, allocations: 18.93 MB / 1.048 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-05/2.339, allocations: 0 / 1.048 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/2.342, allocations: 0.5043 MB / 1.048 GB, free: 57.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01098/2.353, allocations: 3.567 MB / 1.052 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000892/2.354, allocations: 64 kB / 1.052 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02435/2.378, allocations: 18.71 MB / 1.07 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/2.378, allocations: 0 / 1.07 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02492/2.403, allocations: 13.97 MB / 1.084 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002643/2.406, allocations: 0.5835 MB / 1.084 GB, free: 21.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002432/2.408, allocations: 55.36 kB / 1.084 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004693/2.413, allocations: 220.7 kB / 1.085 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/2.415, allocations: 222.2 kB / 1.085 GB, free: 21.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000443/2.415, allocations: 93.55 kB / 1.085 GB, free: 21.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008674/2.424, allocations: 3.677 MB / 1.088 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.21e-07/2.424, allocations: 0 / 1.088 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01152/2.435, allocations: 1.85 MB / 1.09 GB, free: 15.58 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02537/2.461, allocations: 14.8 MB / 1.105 GB, free: 0.6914 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.358/2.819, allocations: 9.489 MB / 1.114 GB, free: 127 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/2.819, allocations: 1.781 kB / 1.114 GB, free: 127 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006744/2.826, allocations: 3.723 MB / 1.118 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005454/2.831, allocations: 0.7146 MB / 1.118 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04814/2.879, allocations: 15.34 MB / 1.133 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008346/2.888, allocations: 4.994 MB / 1.138 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008443/2.896, allocations: 2.81 MB / 1.141 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006077/2.902, allocations: 3.261 MB / 1.144 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.273e-06/2.902, allocations: 0 / 1.144 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2203/3.123, allocations: 140.9 MB / 1.282 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/3.123, allocations: 180.9 kB / 1.282 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/10.32, allocations: 0 / 1.282 GB, free: 29.98 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat