Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",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.001594/0.001594, allocations: 177.1 kB / 17.06 MB, free: 5.098 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.439/1.439, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 108.1 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3698/0.3698, allocations: 44.21 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004051, allocations: 8 kB / 460 MB, free: 1.469 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.4064, allocations: 61.9 MB / 0.5096 GB, free: 38.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.5661, allocations: 116.7 MB / 0.6236 GB, free: 10.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003368/0.5665, allocations: 91.91 kB / 0.6237 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6563/1.223, allocations: 125 MB / 0.7458 GB, free: 92.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.223, allocations: 0 / 0.7458 GB, free: 92.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004526/1.223, allocations: 111.1 kB / 0.7459 GB, free: 92.58 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02271/1.246, allocations: 6.012 MB / 0.7518 GB, free: 89.18 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/1.246, allocations: 10.78 kB / 0.7518 GB, free: 89.18 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006523/1.253, allocations: 0.9828 MB / 0.7528 GB, free: 88.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02048/1.273, allocations: 4.717 MB / 0.7574 GB, free: 86.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02024/1.293, allocations: 6.384 MB / 0.7636 GB, free: 82.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007654/1.294, allocations: 447.8 kB / 0.7641 GB, free: 82.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003843/1.298, allocations: 0.5364 MB / 0.7646 GB, free: 82.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0386/1.337, allocations: 14.22 MB / 0.7785 GB, free: 66.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004402/1.337, allocations: 67.34 kB / 0.7785 GB, free: 66.91 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003345/1.341, allocations: 263.9 kB / 0.7788 GB, free: 66.65 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00216/1.343, allocations: 1.286 MB / 0.78 GB, free: 65.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/1.37, allocations: 11.9 MB / 0.7916 GB, free: 53.45 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08507/1.455, allocations: 59.28 MB / 0.8495 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01337/1.469, allocations: 4.686 MB / 0.8541 GB, free: 3.469 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02365/1.492, allocations: 12.58 MB / 0.8664 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.571e-05/1.492, allocations: 59.8 kB / 0.8665 GB, free: 6.262 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=191): time 7.094e-06/1.492, allocations: 0 / 0.8665 GB, free: 6.262 MB / 0.5105 GB Notification: Performance of matching and sorting (n=242): time 0.4755/1.968, allocations: 39.69 MB / 0.9052 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.991e-05/1.968, allocations: 233.7 kB / 0.9054 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/1.979, allocations: 4.248 MB / 0.9096 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007856/1.98, allocations: 61.08 kB / 0.9096 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003505/1.983, allocations: 3.911 MB / 0.9135 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001475/1.985, allocations: 0.9144 MB / 0.9144 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000655/1.986, allocations: 146.2 kB / 0.9145 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00045/1.986, allocations: 0.6028 MB / 0.9151 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005136/1.991, allocations: 3.26 MB / 0.9183 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006486/1.998, allocations: 7.524 MB / 0.9256 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006987/2.005, allocations: 4.799 MB / 0.9303 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000232/2.005, allocations: 48.77 kB / 0.9304 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.03068/2.036, allocations: 13.86 MB / 0.9439 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002727/2.036, allocations: 72.19 kB / 0.944 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003874/2.036, allocations: 156 kB / 0.9441 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/2.048, allocations: 3.816 MB / 0.9478 GB, free: 96.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005736/2.054, allocations: 1.607 MB / 0.9494 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02539/2.079, allocations: 18.66 MB / 0.9676 GB, free: 82.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007363/2.087, allocations: 487.3 kB / 0.9681 GB, free: 82.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/2.088, allocations: 431.9 kB / 0.9685 GB, free: 82.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (859): * Single equations (assignments): 855 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006905/2.095, allocations: 2.66 MB / 0.9711 GB, free: 79.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001451/2.097, allocations: 434.3 kB / 0.9715 GB, free: 79.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/2.115, allocations: 8.15 MB / 0.9795 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-05/2.115, allocations: 28 kB / 0.9795 GB, free: 73.15 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.95e-05/2.115, allocations: 8 kB / 0.9795 GB, free: 73.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.594e-05/2.115, allocations: 14.22 kB / 0.9795 GB, free: 73.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04109/2.156, allocations: 17.44 MB / 0.9965 GB, free: 58.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.045e-05/2.156, allocations: 8 kB / 0.9966 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/2.158, allocations: 383.4 kB / 0.9969 GB, free: 57.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01133/2.17, allocations: 3.863 MB / 1.001 GB, free: 54.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007493/2.17, allocations: 36 kB / 1.001 GB, free: 54.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02257/2.193, allocations: 17.09 MB / 1.017 GB, free: 36.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/2.193, allocations: 2.078 kB / 1.017 GB, free: 36.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0233/2.216, allocations: 12.64 MB / 1.03 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/2.218, allocations: 475.3 kB / 1.03 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001899/2.22, allocations: 40.55 kB / 1.03 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003664/2.224, allocations: 215.7 kB / 1.03 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008828/2.225, allocations: 150.8 kB / 1.031 GB, free: 23.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004877/2.225, allocations: 56.55 kB / 1.031 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007378/2.233, allocations: 2.983 MB / 1.034 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.62e-07/2.233, allocations: 0 / 1.034 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01052/2.243, allocations: 1.45 MB / 1.035 GB, free: 18.81 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (167): * Single equations (assignments): 163 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02696/2.27, allocations: 13.56 MB / 1.048 GB, free: 5.207 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0149/2.285, allocations: 7.881 MB / 1.056 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/2.285, allocations: 0 / 1.056 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006619/2.292, allocations: 2.963 MB / 1.059 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005964/2.298, allocations: 493.5 kB / 1.059 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3717/2.67, allocations: 128 MB / 1.184 GB, free: 42.67 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/2.681, allocations: 4.205 MB / 1.188 GB, free: 41.85 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.007524/2.689, allocations: 2.182 MB / 1.191 GB, free: 41.67 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005817/2.695, allocations: 2.477 MB / 1.193 GB, free: 41.67 MB / 0.5573 GB Notification: Performance of SimCode: time 1.533e-06/2.695, allocations: 0 / 1.193 GB, free: 41.67 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5189/3.214, allocations: 109.4 MB / 1.3 GB, free: 144.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/3.214, allocations: 191.5 kB / 1.3 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.239/8.452, allocations: 0 / 1.3 GB, free: 144.5 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat