Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.001121, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 101.6 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 45.15 MB / 383.8 MB, free: 336 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.812e-05, allocations: 4 kB / 453.3 MB, free: 75.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 63.25 MB / 0.5045 GB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5415, allocations: 116.9 MB / 0.6186 GB, free: 1.723 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.5417, allocations: 73.78 kB / 0.6187 GB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3135/0.8552, allocations: 125 MB / 0.7407 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.284e-06/0.8553, allocations: 0 / 0.7407 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003275/0.8556, allocations: 108 kB / 0.7409 GB, free: 12.52 MB / 0.5261 GB 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.02057/0.8762, allocations: 5.657 MB / 0.7464 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.8762, allocations: 8.031 kB / 0.7464 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02079/0.897, allocations: 4.735 MB / 0.751 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3039/1.201, allocations: 5.687 MB / 0.7566 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003951/1.201, allocations: 263.4 kB / 0.7568 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001969/1.203, allocations: 327.5 kB / 0.7571 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0151/1.219, allocations: 8.464 MB / 0.7654 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02234/1.241, allocations: 12.07 MB / 0.7772 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002022/1.241, allocations: 66.34 kB / 0.7772 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008708/1.242, allocations: 38.59 kB / 0.7773 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001458/1.243, allocations: 1.296 MB / 0.7785 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05625/1.3, allocations: 57.59 MB / 0.8348 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004326/1.304, allocations: 3.92 MB / 0.8386 GB, free: 77.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002851/1.307, allocations: 2.633 MB / 0.8412 GB, free: 75.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/1.321, allocations: 11.71 MB / 0.8526 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/1.321, allocations: 51.69 kB / 0.8527 GB, free: 69.36 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=191): time 6.232e-06/1.321, allocations: 0 / 0.8527 GB, free: 69.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.07021/1.392, allocations: 33.45 MB / 0.8853 GB, free: 52.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/1.392, allocations: 235 kB / 0.8856 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004961/1.397, allocations: 3.65 MB / 0.8891 GB, free: 49.04 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006371/1.397, allocations: 25.7 kB / 0.8891 GB, free: 49.01 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002252/1.4, allocations: 3.963 MB / 0.893 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001686/1.401, allocations: 0.8951 MB / 0.8939 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004856/1.402, allocations: 0 / 0.8939 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003749/1.402, allocations: 0.6101 MB / 0.8945 GB, free: 44.08 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004055/1.406, allocations: 3.066 MB / 0.8975 GB, free: 41.32 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005458/1.412, allocations: 7.453 MB / 0.9048 GB, free: 32.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005503/1.417, allocations: 4.666 MB / 0.9093 GB, free: 28.15 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-05/1.417, allocations: 44 kB / 0.9094 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02671/1.444, allocations: 12.82 MB / 0.9219 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002252/1.444, allocations: 72 kB / 0.9219 GB, free: 17.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003109/1.445, allocations: 156 kB / 0.9221 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01113/1.456, allocations: 3.781 MB / 0.9258 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005741/1.462, allocations: 1.669 MB / 0.9274 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02358/1.485, allocations: 16.71 MB / 0.9437 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006749/1.492, allocations: 351.3 kB / 0.9441 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001718/1.494, allocations: 444 kB / 0.9445 GB, free: 14.91 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (885): * Single equations (assignments): 881 * 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.001653/1.496, allocations: 493.8 kB / 0.945 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01736/1.513, allocations: 7.918 MB / 0.9527 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001307/1.514, allocations: 406.8 kB / 0.9531 GB, free: 6.086 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3226/1.837, allocations: 7.877 MB / 0.9608 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.077e-05/1.837, allocations: 25.94 kB / 0.9608 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-05/1.837, allocations: 15.44 kB / 0.9608 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.337e-05/1.837, allocations: 15.52 kB / 0.9608 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03499/1.872, allocations: 16.21 MB / 0.9767 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.248e-05/1.872, allocations: 1.062 kB / 0.9767 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/1.874, allocations: 388.4 kB / 0.977 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/1.885, allocations: 3.83 MB / 0.9808 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004306/1.886, allocations: 3.938 kB / 0.9808 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/1.903, allocations: 15 MB / 0.9954 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.903, allocations: 3.5 kB / 0.9954 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01996/1.923, allocations: 12.34 MB / 1.007 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/1.925, allocations: 430.5 kB / 1.008 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000855/1.926, allocations: 3.469 kB / 1.008 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002289/1.928, allocations: 179 kB / 1.008 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004506/1.929, allocations: 147.2 kB / 1.008 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/1.929, allocations: 60.7 kB / 1.008 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003295/1.932, allocations: 2.441 MB / 1.011 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.8e-07/1.932, allocations: 0 / 1.011 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005577/1.938, allocations: 1.27 MB / 1.012 GB, free: 114.9 MB / 0.5417 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 () * 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.01911/1.957, allocations: 13.22 MB / 1.025 GB, free: 110 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00934/1.966, allocations: 7.419 MB / 1.032 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.966, allocations: 6.719 kB / 1.032 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003162/1.969, allocations: 2.842 MB / 1.035 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/1.972, allocations: 408.2 kB / 1.035 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/1.994, allocations: 12.12 MB / 1.047 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004233/1.998, allocations: 4.204 MB / 1.051 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006106/2.004, allocations: 2.212 MB / 1.053 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003314/2.008, allocations: 2.466 MB / 1.056 GB, free: 98.17 MB / 0.5417 GB Notification: Performance of SimCode: time 1.192e-06/2.008, allocations: 0 / 1.056 GB, free: 98.17 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1375/2.145, allocations: 104.3 MB / 1.158 GB, free: 3.625 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/2.145, allocations: 137 kB / 1.158 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.488/6.634, allocations: 0 / 1.158 GB, free: 3.426 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat