Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008313/0.0008312, allocations: 93.34 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1659/0.1659, allocations: 45.15 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.066e-05/4.075e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09468/0.09473, allocations: 63.24 MB / 0.5115 GB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.349/0.4438, allocations: 111 MB / 0.6199 GB, free: 15.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4441, allocations: 84.52 kB / 0.62 GB, free: 15.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2446/0.6887, allocations: 102.7 MB / 0.7203 GB, free: 128 kB / 0.4948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6887, allocations: 0 / 0.7203 GB, free: 128 kB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002051/0.6889, allocations: 92 kB / 0.7204 GB, free: 36 kB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.01457/0.7035, allocations: 5.165 MB / 0.7254 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7036, allocations: 11.97 kB / 0.7254 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002582/0.7062, allocations: 0.8452 MB / 0.7263 GB, free: 9.934 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01761/0.7238, allocations: 4.615 MB / 0.7308 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.736, allocations: 5.132 MB / 0.7358 GB, free: 112 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.7363, allocations: 345.1 kB / 0.7361 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001924/0.7383, allocations: 467.7 kB / 0.7365 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02371/0.762, allocations: 12.62 MB / 0.7489 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001435/0.7622, allocations: 67.41 kB / 0.7489 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005823/0.7628, allocations: 219.9 kB / 0.7491 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001462/0.7642, allocations: 1.265 MB / 0.7504 GB, free: 52 kB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2641/1.028, allocations: 10.73 MB / 0.7609 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04709/1.076, allocations: 55.8 MB / 0.8153 GB, free: 91.03 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01259/1.088, allocations: 5.94 MB / 0.8211 GB, free: 89.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002745/1.091, allocations: 3.022 MB / 0.8241 GB, free: 87.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/1.104, allocations: 13.03 MB / 0.8368 GB, free: 81.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/1.104, allocations: 56.62 kB / 0.8369 GB, free: 81.03 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=193): time 4.348e-06/1.104, allocations: 0 / 0.8369 GB, free: 81.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=254): time 0.07234/1.177, allocations: 30.47 MB / 0.8666 GB, free: 69.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/1.177, allocations: 212.6 kB / 0.8668 GB, free: 68.87 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/1.181, allocations: 3.814 MB / 0.8706 GB, free: 65.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004506/1.182, allocations: 69.36 kB / 0.8706 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001361/1.183, allocations: 3.444 MB / 0.874 GB, free: 62.37 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007215/1.184, allocations: 0.9499 MB / 0.8749 GB, free: 61.53 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/1.184, allocations: 136 kB / 0.875 GB, free: 61.39 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002335/1.184, allocations: 0.5906 MB / 0.8756 GB, free: 60.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003162/1.187, allocations: 2.995 MB / 0.8785 GB, free: 58.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/1.192, allocations: 6.895 MB / 0.8853 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004769/1.197, allocations: 4.478 MB / 0.8897 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.18e-05/1.197, allocations: 44 kB / 0.8897 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=887) (initialization): time 0.01914/1.216, allocations: 12.4 MB / 0.9018 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.774e-05/1.216, allocations: 64 kB / 0.9019 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-05/1.216, allocations: 136 kB / 0.902 GB, free: 35.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007829/1.224, allocations: 3.206 MB / 0.9051 GB, free: 33.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004779/1.229, allocations: 1.557 MB / 0.9067 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/1.246, allocations: 14.92 MB / 0.9212 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005562/1.252, allocations: 479.2 kB / 0.9217 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.253, allocations: 411.9 kB / 0.9221 GB, free: 16.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (809): * Single equations (assignments): 805 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,54.7%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001321/1.254, allocations: 0.6121 MB / 0.9227 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008333/1.255, allocations: 402.8 kB / 0.9231 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.269, allocations: 7.37 MB / 0.9303 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.972e-05/1.269, allocations: 28 kB / 0.9303 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/1.269, allocations: 12 kB / 0.9303 GB, free: 8.488 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.93e-05/1.269, allocations: 11.95 kB / 0.9303 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0274/1.296, allocations: 14.98 MB / 0.9449 GB, free: 9.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.284e-05/1.296, allocations: 0 / 0.9449 GB, free: 9.465 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003801/1.3, allocations: 387.4 kB / 0.9453 GB, free: 9.086 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01477/1.315, allocations: 2.868 MB / 0.9481 GB, free: 6.215 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006447/1.315, allocations: 48 kB / 0.9481 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.296/1.611, allocations: 13.22 MB / 0.9611 GB, free: 129.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.611, allocations: 1.188 kB / 0.9611 GB, free: 129.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02028/1.632, allocations: 11.33 MB / 0.9721 GB, free: 128.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/1.633, allocations: 449.9 kB / 0.9725 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005901/1.634, allocations: 43.83 kB / 0.9726 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/1.636, allocations: 202.8 kB / 0.9728 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005159/1.636, allocations: 148 kB / 0.9729 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/1.636, allocations: 70.89 kB / 0.973 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004209/1.641, allocations: 2.659 MB / 0.9756 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.3e-07/1.641, allocations: 3.844 kB / 0.9756 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005407/1.646, allocations: 1.319 MB / 0.9769 GB, free: 128.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (189): * Single equations (assignments): 185 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0164/1.662, allocations: 12.15 MB / 0.9887 GB, free: 127.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01086/1.673, allocations: 7.651 MB / 0.9962 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/1.673, allocations: 3.906 kB / 0.9962 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003976/1.677, allocations: 3.034 MB / 0.9992 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/1.68, allocations: 471.3 kB / 0.9996 GB, free: 124 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/1.701, allocations: 11.37 MB / 1.011 GB, free: 120 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003601/1.705, allocations: 3.759 MB / 1.014 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004803/1.71, allocations: 2.177 MB / 1.017 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002324/1.712, allocations: 2.217 MB / 1.019 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of SimCode: time 5.91e-07/1.712, allocations: 3.312 kB / 1.019 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/1.833, allocations: 101.3 MB / 1.118 GB, free: 39.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000123/1.834, allocations: 163.5 kB / 1.118 GB, free: 39.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.038/5.872, allocations: 0 / 1.118 GB, free: 39.55 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat does not exist to compare? outputFormat=mat