Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001699/0.001699, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002057/0.002057, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2309/0.2309, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 75.88 kB / 480.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3488, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02138/0.3702, allocations: 17.65 MB / 0.5478 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01602/0.3863, allocations: 5.692 MB / 0.5534 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004944/0.3913, allocations: 107.8 kB / 0.5535 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009616/0.401, allocations: 4.571 MB / 0.558 GB, free: 5.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008978/0.41, allocations: 2.968 MB / 0.5609 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003976/0.414, allocations: 1.494 MB / 0.5623 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01539/0.4294, allocations: 8.943 MB / 0.571 GB, free: 8.195 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009418/0.4389, allocations: 6.429 MB / 0.5773 GB, free: 1.691 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006288/0.4452, allocations: 3.006 MB / 0.5803 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007809/0.4531, allocations: 4.261 MB / 0.5844 GB, free: 10.4 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003002/0.4561, allocations: 0.6641 MB / 0.5851 GB, free: 9.738 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005327/0.4614, allocations: 1.834 MB / 0.5869 GB, free: 7.902 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005652/0.4671, allocations: 3.694 MB / 0.5905 GB, free: 4.199 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008209/0.4754, allocations: 4.218 MB / 0.5946 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01947/0.4949, allocations: 13.65 MB / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.4949, allocations: 0 / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4949, allocations: 0 / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005192/0.4955, allocations: 4 kB / 0.6079 GB, free: 2.25 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.02575/0.5212, allocations: 9.332 MB / 0.617 GB, free: 8.816 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/0.5213, allocations: 12.03 kB / 0.617 GB, free: 8.805 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004606/0.5259, allocations: 1.419 MB / 0.6184 GB, free: 7.375 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03329/0.5592, allocations: 6.017 MB / 0.6243 GB, free: 1.344 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.5731, allocations: 6.019 MB / 0.6302 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004758/0.5736, allocations: 438.9 kB / 0.6306 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002976/0.5766, allocations: 0.6011 MB / 0.6312 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04231/0.619, allocations: 20.57 MB / 0.6513 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002752/0.6193, allocations: 75.41 kB / 0.6513 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001047/0.6203, allocations: 271.7 kB / 0.6516 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005948/0.6263, allocations: 3.718 MB / 0.6552 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03821/0.6645, allocations: 18.06 MB / 0.6729 GB, free: 14.36 MB / 0.5294 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.5829/1.247, allocations: 74.1 MB / 0.7452 GB, free: 113.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01682/1.264, allocations: 7.435 MB / 0.7525 GB, free: 111.8 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004623/1.269, allocations: 4.026 MB / 0.7564 GB, free: 110.2 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02332/1.292, allocations: 18.06 MB / 0.7741 GB, free: 99.87 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/1.292, allocations: 72.05 kB / 0.7741 GB, free: 99.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=332): time 6.752e-06/1.292, allocations: 5.688 kB / 0.7741 GB, free: 99.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=413): time 0.1011/1.394, allocations: 34.69 MB / 0.808 GB, free: 68.29 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/1.394, allocations: 196.3 kB / 0.8082 GB, free: 68.06 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007966/1.402, allocations: 6.501 MB / 0.8145 GB, free: 61.69 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008813/1.403, allocations: 81.7 kB / 0.8146 GB, free: 61.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002612/1.405, allocations: 5.644 MB / 0.8201 GB, free: 56.32 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001772/1.407, allocations: 1.588 MB / 0.8217 GB, free: 54.75 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002439/1.409, allocations: 2.085 MB / 0.8237 GB, free: 52.66 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.31e-05/1.409, allocations: 305.1 kB / 0.824 GB, free: 52.36 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005163/1.415, allocations: 4.178 MB / 0.8281 GB, free: 48.18 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007232/1.422, allocations: 10.07 MB / 0.8379 GB, free: 35.32 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01469/1.437, allocations: 15.37 MB / 0.8529 GB, free: 17.11 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001434/1.437, allocations: 60 kB / 0.853 GB, free: 17.05 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.0273/1.464, allocations: 15.98 MB / 0.8686 GB, free: 1.047 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/1.464, allocations: 92 kB / 0.8687 GB, free: 0.957 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002066/1.464, allocations: 204 kB / 0.8689 GB, free: 0.7578 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007803/1.472, allocations: 2.307 MB / 0.8711 GB, free: 14.45 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009013/1.481, allocations: 2.406 MB / 0.8735 GB, free: 12.04 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02208/1.503, allocations: 12.51 MB / 0.8857 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008101/1.512, allocations: 0.5851 MB / 0.8863 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001847/1.513, allocations: 0.5859 MB / 0.8868 GB, free: 14.23 MB / 0.5919 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008152/1.522, allocations: 3.755 MB / 0.8905 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/1.523, allocations: 0.6325 MB / 0.8911 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01895/1.542, allocations: 8.172 MB / 0.8991 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.623e-05/1.542, allocations: 63.97 kB / 0.8992 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/1.542, allocations: 12 kB / 0.8992 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-05/1.543, allocations: 15.94 kB / 0.8992 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03902/1.582, allocations: 18.52 MB / 0.9173 GB, free: 14.69 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.131e-05/1.582, allocations: 16.41 kB / 0.9173 GB, free: 14.67 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002894/1.585, allocations: 0.613 MB / 0.9179 GB, free: 14.06 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006674/1.591, allocations: 1.745 MB / 0.9196 GB, free: 12.31 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000538/1.592, allocations: 91.77 kB / 0.9197 GB, free: 12.22 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01885/1.611, allocations: 10.57 MB / 0.93 GB, free: 1.512 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.697e-05/1.611, allocations: 23.88 kB / 0.93 GB, free: 1.488 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02356/1.634, allocations: 12.2 MB / 0.9419 GB, free: 5.023 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.636, allocations: 0.653 MB / 0.9426 GB, free: 4.348 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.637, allocations: 75.98 kB / 0.9427 GB, free: 4.273 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.64, allocations: 207.8 kB / 0.9429 GB, free: 4.07 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006912/1.641, allocations: 257.6 kB / 0.9431 GB, free: 3.816 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002937/1.641, allocations: 112 kB / 0.9432 GB, free: 3.707 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.007341/1.648, allocations: 4.034 MB / 0.9471 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.3e-07/1.648, allocations: 0 / 0.9471 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.009332/1.658, allocations: 1.871 MB / 0.949 GB, free: 13.81 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02495/1.683, allocations: 12.98 MB / 0.9616 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2855/1.968, allocations: 9.891 MB / 0.9713 GB, free: 242.6 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/1.968, allocations: 2.312 kB / 0.9713 GB, free: 242.6 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004461/1.973, allocations: 3.31 MB / 0.9745 GB, free: 241.3 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004326/1.977, allocations: 0.8137 MB / 0.9753 GB, free: 240.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1154/2.092, allocations: 87.71 MB / 1.061 GB, free: 154.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006225/2.099, allocations: 5.577 MB / 1.066 GB, free: 148.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006372/2.105, allocations: 3.308 MB / 1.07 GB, free: 145.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00451/2.11, allocations: 3.67 MB / 1.073 GB, free: 141.9 MB / 0.6544 GB Notification: Performance of SimCode: time 1.152e-06/2.11, allocations: 0 / 1.073 GB, free: 141.9 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1782/2.288, allocations: 128 MB / 1.198 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.41/42.7, allocations: 8 kB / 1.198 GB, free: 14.46 MB / 0.6544 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)