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.0008978/0.0008977, allocations: 94.33 kB / 17 MB, free: 6.418 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.001102/0.001102, allocations: 188.8 kB / 17.89 MB, free: 5.945 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.431/1.431, allocations: 223.2 MB / 241.9 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2555/0.2555, allocations: 44.23 MB / 337.2 MB, free: 2.57 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.00035, allocations: 12.48 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1364, allocations: 61.91 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.3574/0.4939, allocations: 57.15 MB / 0.5164 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03293/0.5268, allocations: 12.59 MB / 0.5287 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01934/0.5462, allocations: 271.6 kB / 0.5289 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01261/0.5589, allocations: 2.979 MB / 0.5319 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03292/0.5918, allocations: 8.982 MB / 0.5406 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006172/0.598, allocations: 1.284 MB / 0.5419 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.05216/0.6502, allocations: 37.22 MB / 0.5782 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01436/0.6646, allocations: 7.835 MB / 0.5859 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006001/0.6707, allocations: 2.421 MB / 0.5882 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00767/0.6784, allocations: 3.961 MB / 0.5921 GB, free: 9.184 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002744/0.6812, allocations: 292 kB / 0.5924 GB, free: 8.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00534/0.6865, allocations: 1.326 MB / 0.5937 GB, free: 7.57 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00562/0.6922, allocations: 3.261 MB / 0.5969 GB, free: 4.301 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003665/0.6959, allocations: 1.512 MB / 0.5983 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0141/0.71, allocations: 10.55 MB / 0.6086 GB, free: 8.203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.71, allocations: 4 kB / 0.6086 GB, free: 8.199 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.71, allocations: 4 kB / 0.6087 GB, free: 8.195 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005528/0.7106, allocations: 3.938 kB / 0.6087 GB, free: 8.191 MB / 446.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.02054/0.7312, allocations: 7.625 MB / 0.6161 GB, free: 492 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.7312, allocations: 8.031 kB / 0.6161 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004688/0.7359, allocations: 1.422 MB / 0.6175 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02867/0.7646, allocations: 6.077 MB / 0.6234 GB, free: 8.938 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/0.779, allocations: 6.252 MB / 0.6295 GB, free: 2.602 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005317/0.7796, allocations: 435 kB / 0.63 GB, free: 2.176 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003074/0.7827, allocations: 0.601 MB / 0.6305 GB, free: 1.574 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04122/0.8239, allocations: 20.56 MB / 0.6506 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/0.8242, allocations: 83.23 kB / 0.6507 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009131/0.8251, allocations: 275.7 kB / 0.651 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005668/0.8308, allocations: 3.714 MB / 0.6546 GB, free: 7.797 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03913/0.8699, allocations: 18.04 MB / 0.6722 GB, free: 5.75 MB / 0.4981 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.6479/1.518, allocations: 74.18 MB / 0.7447 GB, free: 140 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/1.535, allocations: 7.412 MB / 0.7519 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005707/1.541, allocations: 4.024 MB / 0.7558 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03063/1.571, allocations: 17.93 MB / 0.7733 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.149e-05/1.572, allocations: 66.91 kB / 0.7734 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=332): time 6.211e-06/1.572, allocations: 0 / 0.7734 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=413): time 0.1057/1.677, allocations: 35.72 MB / 0.8083 GB, free: 95.51 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.941e-05/1.677, allocations: 188.9 kB / 0.8085 GB, free: 95.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008661/1.686, allocations: 6.455 MB / 0.8148 GB, free: 88.84 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009472/1.687, allocations: 85.7 kB / 0.8148 GB, free: 88.75 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003271/1.69, allocations: 5.419 MB / 0.8201 GB, free: 83.33 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002035/1.692, allocations: 1.518 MB / 0.8216 GB, free: 81.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005078/1.693, allocations: 208 kB / 0.8218 GB, free: 81.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004875/1.693, allocations: 0.7563 MB / 0.8226 GB, free: 80.86 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005622/1.699, allocations: 4.135 MB / 0.8266 GB, free: 76.72 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008605/1.708, allocations: 10.02 MB / 0.8364 GB, free: 63.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.718, allocations: 6.298 MB / 0.8425 GB, free: 57.55 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001838/1.718, allocations: 56 kB / 0.8426 GB, free: 57.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.0358/1.754, allocations: 15.85 MB / 0.8581 GB, free: 41.62 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000278/1.754, allocations: 98.38 kB / 0.8582 GB, free: 41.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003661/1.755, allocations: 208 kB / 0.8584 GB, free: 41.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006818/1.762, allocations: 2.334 MB / 0.8606 GB, free: 38.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008125/1.77, allocations: 2.402 MB / 0.863 GB, free: 36.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01706/1.787, allocations: 11.7 MB / 0.8744 GB, free: 24.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008879/1.796, allocations: 0.575 MB / 0.875 GB, free: 24.17 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/1.798, allocations: 0.595 MB / 0.8756 GB, free: 23.58 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.008728/1.807, allocations: 3.751 MB / 0.8792 GB, free: 19.81 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00172/1.808, allocations: 0.5939 MB / 0.8798 GB, free: 19.21 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01706/1.825, allocations: 8.148 MB / 0.8878 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.025e-05/1.826, allocations: 59.98 kB / 0.8878 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.936e-05/1.826, allocations: 15.95 kB / 0.8878 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-05/1.826, allocations: 19.92 kB / 0.8878 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04293/1.869, allocations: 18.61 MB / 0.906 GB, free: 7.957 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.838e-05/1.869, allocations: 12 kB / 0.906 GB, free: 7.945 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.872, allocations: 0.6085 MB / 0.9066 GB, free: 7.336 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006111/1.878, allocations: 1.754 MB / 0.9083 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006729/1.879, allocations: 75.98 kB / 0.9084 GB, free: 5.504 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3308/2.209, allocations: 9.768 MB / 0.9179 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.116e-05/2.209, allocations: 18.22 kB / 0.918 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02633/2.236, allocations: 12.13 MB / 0.9298 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/2.238, allocations: 0.6274 MB / 0.9304 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001444/2.239, allocations: 75.22 kB / 0.9305 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/2.242, allocations: 205.1 kB / 0.9307 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006241/2.243, allocations: 254.3 kB / 0.9309 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002778/2.243, allocations: 113.9 kB / 0.931 GB, free: 176 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006739/2.25, allocations: 3.999 MB / 0.9349 GB, free: 174.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.71e-07/2.25, allocations: 0 / 0.9349 GB, free: 174.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01016/2.26, allocations: 1.913 MB / 0.9368 GB, free: 174.5 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 (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.02025/2.28, allocations: 12.88 MB / 0.9494 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01523/2.295, allocations: 9.775 MB / 0.9589 GB, free: 164.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.133e-05/2.296, allocations: 0 / 0.9589 GB, free: 164.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005235/2.301, allocations: 3.295 MB / 0.9622 GB, free: 161.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005783/2.307, allocations: 0.7845 MB / 0.9629 GB, free: 160.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1167/2.423, allocations: 69.38 MB / 1.031 GB, free: 87.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007607/2.431, allocations: 5.577 MB / 1.036 GB, free: 81.68 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008575/2.44, allocations: 3.316 MB / 1.039 GB, free: 78.36 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006031/2.446, allocations: 3.666 MB / 1.043 GB, free: 74.69 MB / 0.545 GB Notification: Performance of SimCode: time 8.71e-07/2.446, allocations: 4 kB / 1.043 GB, free: 74.69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5138/2.959, allocations: 141.8 MB / 1.181 GB, free: 133.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/2.96, allocations: 207.2 kB / 1.182 GB, free: 133.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.798/8.758, allocations: 3.828 kB / 1.182 GB, free: 133.1 MB / 0.545 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