Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009232, allocations: 96.16 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 180.2 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2269/0.2269, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8.75 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1567, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.3514/0.5081, allocations: 53.95 MB / 0.5132 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0395/0.5477, allocations: 13.13 MB / 0.526 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01575/0.5635, allocations: 271.1 kB / 0.5263 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01169/0.5752, allocations: 2.682 MB / 0.5289 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03341/0.6087, allocations: 7.799 MB / 0.5365 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006718/0.6154, allocations: 1.258 MB / 0.5377 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04199/0.6574, allocations: 27.44 MB / 0.5645 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01376/0.6712, allocations: 7.784 MB / 0.5721 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005884/0.6772, allocations: 2.013 MB / 0.5741 GB, free: 10.65 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006304/0.6835, allocations: 2.87 MB / 0.5769 GB, free: 7.773 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00209/0.6856, allocations: 292 kB / 0.5772 GB, free: 7.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004589/0.6902, allocations: 1.291 MB / 0.5784 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00511/0.6954, allocations: 3.028 MB / 0.5814 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003362/0.6988, allocations: 1.52 MB / 0.5829 GB, free: 1.629 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/0.7142, allocations: 10.54 MB / 0.5932 GB, free: 7.066 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.7143, allocations: 3.938 kB / 0.5932 GB, free: 7.062 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7143, allocations: 4 kB / 0.5932 GB, free: 7.059 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005121/0.7148, allocations: 0 / 0.5932 GB, free: 7.059 MB / 430.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.02248/0.7373, allocations: 7.793 MB / 0.6008 GB, free: 15.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.7374, allocations: 8.031 kB / 0.6008 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007/0.7444, allocations: 1.426 MB / 0.6022 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03559/0.78, allocations: 7.412 MB / 0.6094 GB, free: 6.301 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01609/0.7961, allocations: 5.441 MB / 0.6147 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006174/0.7968, allocations: 435 kB / 0.6151 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003832/0.8006, allocations: 0.6011 MB / 0.6157 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05049/0.8512, allocations: 20.85 MB / 0.6361 GB, free: 9.758 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005373/0.8518, allocations: 79.25 kB / 0.6362 GB, free: 9.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004792/0.8566, allocations: 279.7 kB / 0.6364 GB, free: 9.406 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006892/0.8635, allocations: 3.714 MB / 0.6401 GB, free: 5.684 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04363/0.9071, allocations: 18.35 MB / 0.658 GB, free: 3.32 MB / 494.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.4197/1.327, allocations: 74.49 MB / 0.7307 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01867/1.346, allocations: 7.463 MB / 0.738 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03522/1.381, allocations: 18.13 MB / 0.7557 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.372e-05/1.381, allocations: 70.42 kB / 0.7558 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=332): time 6.432e-06/1.381, allocations: 0 / 0.7558 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=413): time 0.1104/1.491, allocations: 35.49 MB / 0.7904 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/1.492, allocations: 200.8 kB / 0.7906 GB, free: 105 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009633/1.501, allocations: 6.908 MB / 0.7974 GB, free: 98.08 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008629/1.502, allocations: 82.64 kB / 0.7975 GB, free: 97.99 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002995/1.505, allocations: 5.419 MB / 0.8027 GB, free: 92.57 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002017/1.507, allocations: 1.524 MB / 0.8042 GB, free: 91.06 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006015/1.508, allocations: 206.3 kB / 0.8044 GB, free: 90.86 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004821/1.508, allocations: 0.7578 MB / 0.8052 GB, free: 90.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005324/1.514, allocations: 4.135 MB / 0.8092 GB, free: 85.96 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00829/1.522, allocations: 9.983 MB / 0.819 GB, free: 73.19 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008764/1.531, allocations: 6.29 MB / 0.8251 GB, free: 67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.531, allocations: 56 kB / 0.8252 GB, free: 66.94 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03025/1.561, allocations: 15.84 MB / 0.8406 GB, free: 51.06 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/1.561, allocations: 99.95 kB / 0.8407 GB, free: 50.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002406/1.561, allocations: 204 kB / 0.8409 GB, free: 50.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006985/1.568, allocations: 2.353 MB / 0.8432 GB, free: 48.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008221/1.577, allocations: 2.394 MB / 0.8456 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/1.593, allocations: 12.09 MB / 0.8574 GB, free: 33.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01066/1.604, allocations: 0.5788 MB / 0.8579 GB, free: 33.22 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/1.606, allocations: 0.5872 MB / 0.8585 GB, free: 32.64 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.0064/1.612, allocations: 3.759 MB / 0.8622 GB, free: 28.86 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.614, allocations: 0.6021 MB / 0.8628 GB, free: 28.25 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01425/1.628, allocations: 8.147 MB / 0.8707 GB, free: 20.06 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.381e-05/1.628, allocations: 60.94 kB / 0.8708 GB, free: 20 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.628, allocations: 8 kB / 0.8708 GB, free: 19.99 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.795e-05/1.628, allocations: 23.92 kB / 0.8708 GB, free: 19.97 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 postOpt removeSimpleEquations (simulation): time 0.04055/1.669, allocations: 18.73 MB / 0.8891 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.143e-05/1.669, allocations: 15.95 kB / 0.8891 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003007/1.672, allocations: 0.6171 MB / 0.8897 GB, free: 220 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0063/1.678, allocations: 1.748 MB / 0.8914 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006887/1.679, allocations: 82.25 kB / 0.8915 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02401/1.703, allocations: 10.16 MB / 0.9014 GB, free: 4.094 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.296e-05/1.703, allocations: 23.88 kB / 0.9014 GB, free: 4.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03371/1.737, allocations: 14.07 MB / 0.9152 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/1.739, allocations: 0.6534 MB / 0.9158 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002346/1.742, allocations: 75.98 kB / 0.9159 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005117/1.747, allocations: 204.9 kB / 0.9161 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/1.748, allocations: 255 kB / 0.9163 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007275/1.749, allocations: 112 kB / 0.9164 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.362/2.111, allocations: 4.359 MB / 0.9207 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.021e-06/2.111, allocations: 0 / 0.9207 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01665/2.128, allocations: 1.933 MB / 0.9226 GB, free: 195.6 MB / 0.5606 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.04113/2.169, allocations: 16.99 MB / 0.9392 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01897/2.188, allocations: 9.777 MB / 0.9487 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/2.188, allocations: 6.281 kB / 0.9487 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006407/2.194, allocations: 3.295 MB / 0.9519 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006498/2.201, allocations: 0.7313 MB / 0.9527 GB, free: 183 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.103/2.304, allocations: 177.3 MB / 1.126 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008994/2.313, allocations: 5.747 MB / 1.131 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.009233/2.322, allocations: 3.318 MB / 1.135 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006407/2.329, allocations: 3.675 MB / 1.138 GB, free: 336 kB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/2.329, allocations: 7.828 kB / 1.138 GB, free: 332 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4964/2.825, allocations: 141.4 MB / 1.276 GB, free: 85.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/2.825, allocations: 200.7 kB / 1.277 GB, free: 85.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.89/8.715, allocations: 0 / 1.277 GB, free: 85.11 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat