Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000969/0.000969, allocations: 202.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.336/1.336, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008223/0.0008223, allocations: 94.14 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 45.14 MB / 383.7 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.596e-05/1.599e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.5336, allocations: 119.8 MB / 0.6214 GB, free: 15.07 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.5338, allocations: 81.95 kB / 0.6215 GB, free: 15.03 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7514/1.285, allocations: 176.2 MB / 0.7935 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.984e-06/1.285, allocations: 0 / 0.7935 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003639/1.286, allocations: 150.2 kB / 0.7937 GB, free: 113.9 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02381/1.309, allocations: 7.716 MB / 0.8012 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/1.31, allocations: 11 kB / 0.8012 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02935/1.339, allocations: 6.942 MB / 0.808 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.359, allocations: 8.365 MB / 0.8162 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004456/1.36, allocations: 246.2 kB / 0.8164 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004192/1.364, allocations: 464.6 kB / 0.8168 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02354/1.387, allocations: 13.16 MB / 0.8297 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03637/1.424, allocations: 17.63 MB / 0.8469 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003674/1.424, allocations: 95.16 kB / 0.847 GB, free: 100 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002567/1.427, allocations: 52.48 kB / 0.8471 GB, free: 100 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002664/1.429, allocations: 1.953 MB / 0.849 GB, free: 98.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09069/1.52, allocations: 78.93 MB / 0.926 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006684/1.527, allocations: 5.979 MB / 0.9319 GB, free: 17.63 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/1.531, allocations: 3.87 MB / 0.9357 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3874/1.919, allocations: 17.91 MB / 0.9531 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.095e-05/1.919, allocations: 71.17 kB / 0.9532 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=334): time 8.115e-06/1.919, allocations: 0.5312 kB / 0.9532 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=426): time 0.07107/1.99, allocations: 26.23 MB / 0.9788 GB, free: 98.24 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/1.99, allocations: 196 kB / 0.979 GB, free: 98.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008711/1.999, allocations: 5.035 MB / 0.9839 GB, free: 97.55 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009272/2, allocations: 26.92 kB / 0.984 GB, free: 97.52 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003309/2.003, allocations: 5.512 MB / 0.9893 GB, free: 94.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001756/2.005, allocations: 1.517 MB / 0.9908 GB, free: 93.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006408/2.005, allocations: 0 / 0.9908 GB, free: 93.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004682/2.006, allocations: 0.7749 MB / 0.9916 GB, free: 93.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004737/2.011, allocations: 3.967 MB / 0.9955 GB, free: 93.35 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007337/2.018, allocations: 10.04 MB / 1.005 GB, free: 85.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/2.028, allocations: 6.561 MB / 1.012 GB, free: 83.92 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000178/2.029, allocations: 67.03 kB / 1.012 GB, free: 83.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.03312/2.062, allocations: 15.01 MB / 1.026 GB, free: 79.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000415/2.062, allocations: 101.3 kB / 1.026 GB, free: 79.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004557/2.063, allocations: 215.4 kB / 1.027 GB, free: 79.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007497/2.07, allocations: 2.305 MB / 1.029 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009297/2.08, allocations: 2.55 MB / 1.031 GB, free: 78.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/2.096, allocations: 11.12 MB / 1.042 GB, free: 73.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00932/2.105, allocations: 0.4912 MB / 1.043 GB, free: 73.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002913/2.108, allocations: 0.6172 MB / 1.043 GB, free: 73.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1333): * Single equations (assignments): 1326 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.004239/2.112, allocations: 0.6436 MB / 1.044 GB, free: 73.03 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01703/2.129, allocations: 7.858 MB / 1.052 GB, free: 70.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001885/2.131, allocations: 0.5638 MB / 1.052 GB, free: 70.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01704/2.148, allocations: 7.945 MB / 1.06 GB, free: 65.42 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.129e-05/2.149, allocations: 64.81 kB / 1.06 GB, free: 65.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.519e-05/2.149, allocations: 12 kB / 1.06 GB, free: 65.35 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.431e-05/2.149, allocations: 19.73 kB / 1.06 GB, free: 65.35 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03505/2.184, allocations: 17.13 MB / 1.077 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.091e-05/2.184, allocations: 14.88 kB / 1.077 GB, free: 51.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003071/2.187, allocations: 0.6497 MB / 1.077 GB, free: 50.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005988/2.193, allocations: 1.811 MB / 1.079 GB, free: 49.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006285/2.194, allocations: 27.94 kB / 1.079 GB, free: 49.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/2.206, allocations: 9.395 MB / 1.088 GB, free: 41.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/2.206, allocations: 20.59 kB / 1.088 GB, free: 41.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01791/2.224, allocations: 13.97 MB / 1.102 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/2.226, allocations: 0.5865 MB / 1.103 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/2.227, allocations: 19.33 kB / 1.103 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/2.23, allocations: 198.3 kB / 1.103 GB, free: 27.33 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007093/2.231, allocations: 258.7 kB / 1.103 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/2.231, allocations: 115.8 kB / 1.103 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005642/2.237, allocations: 3.345 MB / 1.107 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/2.237, allocations: 0 / 1.107 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01043/2.247, allocations: 1.697 MB / 1.108 GB, free: 22.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 330 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01961/2.267, allocations: 17 MB / 1.125 GB, free: 6.68 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01908/2.286, allocations: 9.667 MB / 1.134 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/2.286, allocations: 2.625 kB / 1.134 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00534/2.292, allocations: 3.262 MB / 1.137 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/2.295, allocations: 0.5647 MB / 1.138 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3781/2.674, allocations: 16.95 MB / 1.154 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/2.685, allocations: 5.758 MB / 1.16 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01012/2.695, allocations: 3.482 MB / 1.164 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006656/2.701, allocations: 3.661 MB / 1.167 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of SimCode: time 6.91e-07/2.701, allocations: 0 / 1.167 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2014/2.903, allocations: 135.4 MB / 1.299 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001311/2.903, allocations: 135.4 kB / 1.299 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.331/9.234, allocations: 0 / 1.299 GB, free: 34.8 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat