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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0007818/0.0007818, allocations: 100.4 kB / 17.01 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009224/0.0009225, allocations: 194.7 kB / 17.91 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.233/0.233, allocations: 45.91 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002853, allocations: 8 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1478, allocations: 63.45 MB / 481.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.4119/0.5598, allocations: 57.16 MB / 0.5262 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04101/0.6008, allocations: 12.64 MB / 0.5385 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01939/0.6203, allocations: 271.8 kB / 0.5388 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0128/0.6331, allocations: 2.965 MB / 0.5417 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03603/0.6692, allocations: 8.98 MB / 0.5504 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.6759, allocations: 1.272 MB / 0.5517 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.05065/0.7266, allocations: 37.44 MB / 0.5882 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01342/0.74, allocations: 7.829 MB / 0.5959 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005771/0.7458, allocations: 2.425 MB / 0.5982 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007089/0.753, allocations: 3.953 MB / 0.6021 GB, free: 12.67 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002177/0.7552, allocations: 292 kB / 0.6024 GB, free: 12.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004796/0.76, allocations: 1.323 MB / 0.6037 GB, free: 11.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005309/0.7653, allocations: 3.253 MB / 0.6069 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003334/0.7687, allocations: 1.512 MB / 0.6083 GB, free: 6.277 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01315/0.7819, allocations: 10.55 MB / 0.6186 GB, free: 11.7 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.7819, allocations: 3.984 kB / 0.6186 GB, free: 11.69 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.7819, allocations: 0 / 0.6186 GB, free: 11.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005994/0.7825, allocations: 0 / 0.6186 GB, free: 11.69 MB / 462.1 MB 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.01976/0.8023, allocations: 7.645 MB / 0.6261 GB, free: 3.961 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.8023, allocations: 12.03 kB / 0.6261 GB, free: 3.949 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004559/0.8069, allocations: 1.422 MB / 0.6275 GB, free: 2.516 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02754/0.8345, allocations: 6.085 MB / 0.6335 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/0.848, allocations: 5.815 MB / 0.6391 GB, free: 6.512 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005076/0.8485, allocations: 438.9 kB / 0.6395 GB, free: 6.082 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002909/0.8514, allocations: 0.6087 MB / 0.6401 GB, free: 5.473 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04652/0.898, allocations: 20.57 MB / 0.6602 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004509/0.8985, allocations: 79.3 kB / 0.6603 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002771/0.9013, allocations: 271.7 kB / 0.6606 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006058/0.9073, allocations: 3.718 MB / 0.6642 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04005/0.9474, allocations: 18.03 MB / 0.6818 GB, free: 9.641 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6242/1.572, allocations: 74.2 MB / 0.7543 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01608/1.588, allocations: 7.423 MB / 0.7615 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005107/1.593, allocations: 4.021 MB / 0.7654 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02572/1.619, allocations: 18 MB / 0.783 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/1.619, allocations: 69.69 kB / 0.7831 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=332): time 5.481e-06/1.619, allocations: 0 / 0.7831 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=413): time 0.104/1.723, allocations: 35.38 MB / 0.8176 GB, free: 82.08 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/1.723, allocations: 188.9 kB / 0.8178 GB, free: 81.86 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00899/1.732, allocations: 6.453 MB / 0.8241 GB, free: 75.41 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001168/1.733, allocations: 86.41 kB / 0.8242 GB, free: 75.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005145/1.738, allocations: 5.423 MB / 0.8295 GB, free: 69.89 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002802/1.741, allocations: 1.525 MB / 0.831 GB, free: 68.38 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007727/1.742, allocations: 208 kB / 0.8312 GB, free: 68.18 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0006098/1.742, allocations: 0.7485 MB / 0.8319 GB, free: 67.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005899/1.748, allocations: 4.143 MB / 0.836 GB, free: 63.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008321/1.757, allocations: 10.03 MB / 0.8458 GB, free: 50.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008774/1.765, allocations: 6.289 MB / 0.8519 GB, free: 44.07 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/1.766, allocations: 60 kB / 0.852 GB, free: 44.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03053/1.796, allocations: 15.86 MB / 0.8674 GB, free: 28.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000295/1.796, allocations: 96 kB / 0.8675 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004679/1.797, allocations: 207.9 kB / 0.8677 GB, free: 27.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007085/1.804, allocations: 2.338 MB / 0.87 GB, free: 25.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008608/1.813, allocations: 2.398 MB / 0.8724 GB, free: 23.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/1.831, allocations: 11.69 MB / 0.8838 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009625/1.84, allocations: 0.5748 MB / 0.8843 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002438/1.843, allocations: 0.5872 MB / 0.8849 GB, free: 10.09 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1276): * Single equations (assignments): 1269 * 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.009309/1.852, allocations: 3.767 MB / 0.8886 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002032/1.854, allocations: 0.5977 MB / 0.8892 GB, free: 5.703 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02047/1.875, allocations: 8.141 MB / 0.8971 GB, free: 13.52 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/1.875, allocations: 60 kB / 0.8972 GB, free: 13.46 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.307e-05/1.875, allocations: 12.47 kB / 0.8972 GB, free: 13.45 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.589e-05/1.875, allocations: 27.86 kB / 0.8972 GB, free: 13.42 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3807/2.256, allocations: 18.62 MB / 0.9154 GB, free: 173 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.903e-05/2.256, allocations: 11.41 kB / 0.9154 GB, free: 173 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003775/2.26, allocations: 0.6179 MB / 0.916 GB, free: 173 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007049/2.267, allocations: 1.746 MB / 0.9177 GB, free: 173 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007312/2.267, allocations: 81.16 kB / 0.9178 GB, free: 173 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/2.285, allocations: 9.773 MB / 0.9273 GB, free: 169.2 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.072e-05/2.285, allocations: 17.47 kB / 0.9274 GB, free: 169.2 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0213/2.306, allocations: 12.13 MB / 0.9392 GB, free: 164.4 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002178/2.308, allocations: 0.6334 MB / 0.9398 GB, free: 164.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001645/2.31, allocations: 81.94 kB / 0.9399 GB, free: 164.2 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003495/2.313, allocations: 205 kB / 0.9401 GB, free: 164.2 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001017/2.314, allocations: 259.2 kB / 0.9403 GB, free: 164.1 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000351/2.315, allocations: 112.1 kB / 0.9404 GB, free: 164.1 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.008094/2.323, allocations: 4.001 MB / 0.9444 GB, free: 162.8 MB / 0.5451 GB Notification: Performance of sort global known variables: time 5.71e-07/2.323, allocations: 0 / 0.9444 GB, free: 162.8 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01222/2.335, allocations: 1.9 MB / 0.9462 GB, free: 162.6 MB / 0.5451 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (325): * Single equations (assignments): 318 * 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.01946/2.355, allocations: 12.9 MB / 0.9588 GB, free: 155.4 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01431/2.369, allocations: 9.776 MB / 0.9684 GB, free: 146.7 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/2.369, allocations: 0 / 0.9684 GB, free: 146.7 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.004969/2.374, allocations: 3.298 MB / 0.9716 GB, free: 143.4 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005699/2.38, allocations: 0.7957 MB / 0.9724 GB, free: 142.6 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1121/2.492, allocations: 69.39 MB / 1.04 GB, free: 67.25 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007507/2.499, allocations: 5.587 MB / 1.046 GB, free: 61.63 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.008163/2.508, allocations: 3.304 MB / 1.049 GB, free: 58.32 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005163/2.513, allocations: 3.674 MB / 1.052 GB, free: 54.64 MB / 0.5451 GB Notification: Performance of SimCode: time 5.31e-07/2.513, allocations: 0 / 1.052 GB, free: 54.64 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4872/3, allocations: 141.7 MB / 1.191 GB, free: 133.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001364/3, allocations: 216.1 kB / 1.191 GB, free: 133.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.995/8.996, allocations: 0 / 1.191 GB, free: 133.7 MB / 0.5607 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