Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002654/0.002658, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.258/2.258, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 97.53 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5253/0.5253, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008206/0.000821, allocations: 15.98 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1706, allocations: 58.84 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.4226/0.5933, allocations: 54.06 MB / 0.5316 GB, free: 12.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03547/0.6288, allocations: 13.09 MB / 0.5444 GB, free: 3.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01341/0.6423, allocations: 270.7 kB / 0.5446 GB, free: 3.188 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.6524, allocations: 2.685 MB / 0.5473 GB, free: 2.305 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03134/0.6838, allocations: 7.801 MB / 0.5549 GB, free: 14.6 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006921/0.6908, allocations: 1.259 MB / 0.5561 GB, free: 14.14 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04722/0.738, allocations: 17.3 MB / 0.573 GB, free: 5.844 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01773/0.7558, allocations: 7.795 MB / 0.5806 GB, free: 13.99 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006/0.7619, allocations: 2.029 MB / 0.5826 GB, free: 11.95 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007018/0.769, allocations: 2.874 MB / 0.5854 GB, free: 9.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002236/0.7713, allocations: 292 kB / 0.5857 GB, free: 8.785 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005293/0.7766, allocations: 1.28 MB / 0.5869 GB, free: 7.504 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006041/0.7827, allocations: 3.055 MB / 0.5899 GB, free: 4.441 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004088/0.7868, allocations: 1.524 MB / 0.5914 GB, free: 2.906 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02589/0.8128, allocations: 10.57 MB / 0.6017 GB, free: 8.305 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8129, allocations: 0 / 0.6017 GB, free: 8.305 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.8129, allocations: 0 / 0.6017 GB, free: 8.305 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006043/0.8135, allocations: 0 / 0.6017 GB, free: 8.305 MB / 426.7 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.04165/0.8552, allocations: 7.83 MB / 0.6094 GB, free: 404 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.8553, allocations: 8.031 kB / 0.6094 GB, free: 396 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007695/0.863, allocations: 1.426 MB / 0.6108 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09231/0.9554, allocations: 7.412 MB / 0.618 GB, free: 7.516 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03016/0.9856, allocations: 6.051 MB / 0.6239 GB, free: 1.383 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001007/0.9867, allocations: 442.9 kB / 0.6243 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004829/0.9915, allocations: 0.5971 MB / 0.6249 GB, free: 360 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08144/1.073, allocations: 20.85 MB / 0.6453 GB, free: 10.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/1.073, allocations: 87.23 kB / 0.6454 GB, free: 10.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002684/1.076, allocations: 267.7 kB / 0.6456 GB, free: 10.01 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01076/1.087, allocations: 3.718 MB / 0.6493 GB, free: 6.289 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06638/1.153, allocations: 18.37 MB / 0.6672 GB, free: 3.898 MB / 490.7 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.821/1.974, allocations: 74.56 MB / 0.74 GB, free: 78.43 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03316/2.008, allocations: 7.464 MB / 0.7473 GB, free: 75.42 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05256/2.06, allocations: 18.15 MB / 0.765 GB, free: 65.61 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001191/2.06, allocations: 66.52 kB / 0.7651 GB, free: 65.54 MB / 490.8 MB Notification: Performance of pre-optimization done (n=332): time 9.348e-06/2.061, allocations: 0 / 0.7651 GB, free: 65.54 MB / 490.8 MB Notification: Performance of matching and sorting (n=413): time 0.2126/2.273, allocations: 35.74 MB / 0.8 GB, free: 35.22 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.674e-05/2.273, allocations: 196.9 kB / 0.8002 GB, free: 34.99 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/2.288, allocations: 6.969 MB / 0.807 GB, free: 28.03 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/2.289, allocations: 85.14 kB / 0.8071 GB, free: 27.94 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004238/2.293, allocations: 5.251 MB / 0.8122 GB, free: 22.69 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002335/2.295, allocations: 1.521 MB / 0.8137 GB, free: 21.18 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/2.297, allocations: 208 kB / 0.8139 GB, free: 20.98 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0007447/2.298, allocations: 0.7611 MB / 0.8146 GB, free: 20.21 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01085/2.308, allocations: 4.128 MB / 0.8187 GB, free: 16.08 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01483/2.323, allocations: 9.991 MB / 0.8284 GB, free: 3.211 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01649/2.34, allocations: 6.287 MB / 0.8346 GB, free: 12.91 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002397/2.34, allocations: 60 kB / 0.8346 GB, free: 12.85 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.05761/2.398, allocations: 15.64 MB / 0.8499 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001905/2.398, allocations: 95.98 kB / 0.85 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00039/2.398, allocations: 208 kB / 0.8502 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01529/2.414, allocations: 2.342 MB / 0.8525 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0162/2.43, allocations: 2.402 MB / 0.8548 GB, free: 8.129 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4157/2.846, allocations: 12.07 MB / 0.8666 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/2.858, allocations: 0.5803 MB / 0.8672 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/2.86, allocations: 0.59 MB / 0.8677 GB, free: 142.1 MB / 0.5105 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.01144/2.872, allocations: 3.771 MB / 0.8714 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001864/2.874, allocations: 0.6001 MB / 0.872 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03206/2.906, allocations: 8.15 MB / 0.88 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001339/2.906, allocations: 62.38 kB / 0.88 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/2.906, allocations: 12.47 kB / 0.88 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-05/2.906, allocations: 20.75 kB / 0.8801 GB, free: 139.6 MB / 0.5105 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.06495/2.971, allocations: 18.77 MB / 0.8984 GB, free: 132.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.964e-05/2.971, allocations: 11.66 kB / 0.8984 GB, free: 132.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005997/2.977, allocations: 0.6121 MB / 0.899 GB, free: 132.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01341/2.991, allocations: 1.752 MB / 0.9007 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00108/2.992, allocations: 82.08 kB / 0.9008 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03206/3.024, allocations: 10.17 MB / 0.9107 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.272e-05/3.024, allocations: 16.34 kB / 0.9107 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03991/3.064, allocations: 14.08 MB / 0.9245 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004428/3.068, allocations: 1.164 MB / 0.9256 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002627/3.071, allocations: 80.66 kB / 0.9257 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006791/3.078, allocations: 204.8 kB / 0.9259 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00153/3.08, allocations: 255.7 kB / 0.9261 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006215/3.08, allocations: 113.2 kB / 0.9262 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01128/3.092, allocations: 4.401 MB / 0.9305 GB, free: 118 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.92e-07/3.092, allocations: 0 / 0.9305 GB, free: 118 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01294/3.105, allocations: 1.933 MB / 0.9324 GB, free: 117.8 MB / 0.5105 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.03984/3.144, allocations: 17.01 MB / 0.949 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02453/3.169, allocations: 9.764 MB / 0.9586 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.946e-05/3.169, allocations: 3.594 kB / 0.9586 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009365/3.179, allocations: 3.306 MB / 0.9618 GB, free: 89.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006981/3.186, allocations: 0.7235 MB / 0.9625 GB, free: 89.14 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4565/3.642, allocations: 178.3 MB / 1.137 GB, free: 79.68 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01446/3.657, allocations: 5.77 MB / 1.142 GB, free: 78.78 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009055/3.666, allocations: 3.77 MB / 1.146 GB, free: 78.77 MB / 0.5262 GB Notification: Performance of SimCode: time 1.713e-06/3.666, allocations: 2.75 kB / 1.146 GB, free: 78.77 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.152/9.817, allocations: 181.9 MB / 1.324 GB, free: 131.7 MB / 0.5262 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat