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.001254/0.001254, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2545/0.2545, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002268/0.002268, allocations: 84.09 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1354, allocations: 62.46 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02148/0.157, allocations: 17.63 MB / 497.8 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.1709, allocations: 5.706 MB / 0.4917 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004404/0.1753, allocations: 107.7 kB / 0.4918 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009705/0.1851, allocations: 4.563 MB / 0.4963 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.1953, allocations: 2.972 MB / 0.4992 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004063/0.1994, allocations: 1.501 MB / 0.5007 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3304/0.5298, allocations: 8.923 MB / 0.5094 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0124/0.5422, allocations: 6.441 MB / 0.5157 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008068/0.5503, allocations: 3 MB / 0.5186 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008782/0.5592, allocations: 4.26 MB / 0.5228 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003449/0.5626, allocations: 0.662 MB / 0.5234 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005994/0.5687, allocations: 1.83 MB / 0.5252 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006078/0.5748, allocations: 3.684 MB / 0.5288 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01168/0.5865, allocations: 4.225 MB / 0.5329 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01425/0.6008, allocations: 13.15 MB / 0.5458 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.6008, allocations: 4 kB / 0.5458 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6008, allocations: 0 / 0.5458 GB, free: 14.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005073/0.6013, allocations: 0 / 0.5458 GB, free: 14.96 MB / 398.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.02632/0.6277, allocations: 9.122 MB / 0.5547 GB, free: 5.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.375e-05/0.6278, allocations: 8.031 kB / 0.5547 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005668/0.6334, allocations: 1.42 MB / 0.5561 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03314/0.6666, allocations: 5.956 MB / 0.5619 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.6799, allocations: 5.912 MB / 0.5677 GB, free: 8.938 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000437/0.6804, allocations: 440.8 kB / 0.5681 GB, free: 8.574 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002562/0.6829, allocations: 0.5997 MB / 0.5687 GB, free: 8.043 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04571/0.7287, allocations: 20.57 MB / 0.5888 GB, free: 2.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002896/0.729, allocations: 79.62 kB / 0.5888 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.7304, allocations: 276.6 kB / 0.5891 GB, free: 2.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006264/0.7367, allocations: 3.707 MB / 0.5927 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/0.7774, allocations: 18.09 MB / 0.6104 GB, free: 12.98 MB / 462.1 MB 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.1128/0.8902, allocations: 74.31 MB / 0.6829 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01979/0.91, allocations: 7.426 MB / 0.6902 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006464/0.9165, allocations: 4.025 MB / 0.6941 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03779/0.9543, allocations: 18.04 MB / 0.7117 GB, free: 3.227 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.578e-05/0.9545, allocations: 68.55 kB / 0.7118 GB, free: 3.148 MB / 0.545 GB Notification: Performance of pre-optimization done (n=332): time 7.004e-06/0.9545, allocations: 8 kB / 0.7118 GB, free: 3.141 MB / 0.545 GB Notification: Performance of matching and sorting (n=413): time 0.5049/1.459, allocations: 34.26 MB / 0.7453 GB, free: 178.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/1.459, allocations: 198.7 kB / 0.7455 GB, free: 178.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009191/1.469, allocations: 6.477 MB / 0.7518 GB, free: 176.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008459/1.47, allocations: 88.58 kB / 0.7519 GB, free: 176.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003311/1.473, allocations: 5.418 MB / 0.7572 GB, free: 172 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001789/1.475, allocations: 1.521 MB / 0.7586 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002573/1.477, allocations: 2.07 MB / 0.7607 GB, free: 169.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.111e-05/1.477, allocations: 301.1 kB / 0.761 GB, free: 169.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005045/1.482, allocations: 4.174 MB / 0.765 GB, free: 167.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007487/1.49, allocations: 10.08 MB / 0.7749 GB, free: 154.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01417/1.504, allocations: 15.37 MB / 0.7899 GB, free: 136.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001536/1.504, allocations: 60 kB / 0.7899 GB, free: 136.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.02813/1.532, allocations: 15.94 MB / 0.8055 GB, free: 120.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.533, allocations: 92 kB / 0.8056 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/1.533, allocations: 208 kB / 0.8058 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006878/1.54, allocations: 2.323 MB / 0.8081 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007507/1.547, allocations: 2.398 MB / 0.8104 GB, free: 115.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/1.565, allocations: 12.51 MB / 0.8226 GB, free: 102.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008634/1.573, allocations: 0.575 MB / 0.8232 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001582/1.575, allocations: 0.5859 MB / 0.8238 GB, free: 101.3 MB / 0.545 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.006241/1.581, allocations: 3.76 MB / 0.8274 GB, free: 97.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/1.582, allocations: 0.5939 MB / 0.828 GB, free: 96.97 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/1.597, allocations: 8.171 MB / 0.836 GB, free: 88.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.791e-05/1.597, allocations: 66.77 kB / 0.836 GB, free: 88.69 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/1.597, allocations: 8 kB / 0.8361 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-05/1.597, allocations: 19.94 kB / 0.8361 GB, free: 88.66 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03564/1.633, allocations: 18.65 MB / 0.8543 GB, free: 69.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.29e-05/1.633, allocations: 12 kB / 0.8543 GB, free: 69.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/1.636, allocations: 0.6201 MB / 0.8549 GB, free: 69.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006025/1.642, allocations: 1.749 MB / 0.8566 GB, free: 67.29 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009591/1.643, allocations: 81.16 kB / 0.8567 GB, free: 67.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.657, allocations: 10.58 MB / 0.867 GB, free: 56.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/1.657, allocations: 23.86 kB / 0.867 GB, free: 56.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01961/1.677, allocations: 12.17 MB / 0.8789 GB, free: 44.04 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/1.679, allocations: 0.6105 MB / 0.8795 GB, free: 43.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/1.681, allocations: 87.33 kB / 0.8796 GB, free: 43.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002946/1.683, allocations: 195.8 kB / 0.8798 GB, free: 43.12 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007619/1.684, allocations: 257.6 kB / 0.88 GB, free: 42.87 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002641/1.685, allocations: 116 kB / 0.8801 GB, free: 42.76 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006989/1.692, allocations: 4.03 MB / 0.8841 GB, free: 38.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.11e-07/1.692, allocations: 0 / 0.8841 GB, free: 38.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009787/1.701, allocations: 1.878 MB / 0.8859 GB, free: 36.87 MB / 0.545 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.01959/1.721, allocations: 12.95 MB / 0.8986 GB, free: 23.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02499/1.746, allocations: 15.43 MB / 0.9136 GB, free: 8.273 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/1.746, allocations: 3.938 kB / 0.9136 GB, free: 8.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2389/1.985, allocations: 3.318 MB / 0.9169 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008158/1.993, allocations: 0.8145 MB / 0.9177 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.16/2.153, allocations: 105 MB / 1.02 GB, free: 87.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009655/2.163, allocations: 5.579 MB / 1.026 GB, free: 82.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008706/2.172, allocations: 3.304 MB / 1.029 GB, free: 78.78 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006458/2.178, allocations: 3.67 MB / 1.032 GB, free: 75.11 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/2.178, allocations: 0 / 1.032 GB, free: 75.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4867/2.665, allocations: 134.2 MB / 1.164 GB, free: 164.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/16.57, allocations: 1.719 kB / 1.164 GB, free: 164.7 MB / 0.5607 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)