Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_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.0009479/0.000948, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 173.2 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3769/0.3769, allocations: 43.55 MB / 314.6 MB, free: 8.98 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005169, allocations: 14.97 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1382, allocations: 58.85 MB / 442.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.273/0.4113, allocations: 57.26 MB / 0.4884 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03231/0.4437, allocations: 12.56 MB / 0.5007 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01609/0.4598, allocations: 272.5 kB / 0.5009 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.4719, allocations: 2.969 MB / 0.5038 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03205/0.504, allocations: 8.99 MB / 0.5126 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005879/0.5099, allocations: 1.286 MB / 0.5139 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03551/0.5454, allocations: 24.62 MB / 0.5379 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01258/0.5581, allocations: 7.856 MB / 0.5456 GB, free: 7.078 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005391/0.5635, allocations: 2.437 MB / 0.548 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007045/0.5706, allocations: 3.981 MB / 0.5518 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001627/0.5723, allocations: 296 kB / 0.5521 GB, free: 360 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003784/0.576, allocations: 1.311 MB / 0.5534 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003511/0.5796, allocations: 3.277 MB / 0.5566 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.5819, allocations: 1.524 MB / 0.5581 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.5949, allocations: 10.58 MB / 0.5684 GB, free: 15.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.595, allocations: 4 kB / 0.5684 GB, free: 15.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.595, allocations: 0 / 0.5684 GB, free: 15.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004832/0.5955, allocations: 4 kB / 0.5684 GB, free: 15.6 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.02089/0.6164, allocations: 7.67 MB / 0.5759 GB, free: 7.848 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.6165, allocations: 12.03 kB / 0.5759 GB, free: 7.836 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005596/0.6221, allocations: 1.415 MB / 0.5773 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02796/0.6501, allocations: 6.09 MB / 0.5833 GB, free: 308 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/0.6662, allocations: 6.842 MB / 0.59 GB, free: 9.375 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005448/0.6668, allocations: 435 kB / 0.5904 GB, free: 8.949 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003554/0.6703, allocations: 0.6049 MB / 0.591 GB, free: 8.344 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04389/0.7142, allocations: 20.56 MB / 0.611 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002551/0.7145, allocations: 79.23 kB / 0.6111 GB, free: 2.562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001238/0.7158, allocations: 271.7 kB / 0.6114 GB, free: 2.297 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005888/0.7217, allocations: 3.726 MB / 0.615 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5022/1.224, allocations: 18.03 MB / 0.6326 GB, free: 129.7 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.1108/1.335, allocations: 74.26 MB / 0.7051 GB, free: 82.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.355, allocations: 7.417 MB / 0.7124 GB, free: 79.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006132/1.362, allocations: 4.002 MB / 0.7163 GB, free: 77.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03068/1.392, allocations: 17.93 MB / 0.7338 GB, free: 64.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.323e-05/1.392, allocations: 68.56 kB / 0.7339 GB, free: 64.19 MB / 494.1 MB Notification: Performance of pre-optimization done (n=332): time 6.202e-06/1.392, allocations: 0 / 0.7339 GB, free: 64.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=413): time 0.1152/1.508, allocations: 35.96 MB / 0.769 GB, free: 28.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/1.508, allocations: 200.8 kB / 0.7692 GB, free: 27.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009943/1.518, allocations: 6.508 MB / 0.7755 GB, free: 21.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009402/1.519, allocations: 85.7 kB / 0.7756 GB, free: 21.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00319/1.522, allocations: 5.44 MB / 0.7809 GB, free: 15.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001994/1.524, allocations: 1.512 MB / 0.7824 GB, free: 14.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006288/1.524, allocations: 212 kB / 0.7826 GB, free: 14.13 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004788/1.525, allocations: 0.7524 MB / 0.7833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005629/1.531, allocations: 4.135 MB / 0.7874 GB, free: 9.234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009112/1.54, allocations: 10.03 MB / 0.7972 GB, free: 12.33 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01178/1.552, allocations: 6.285 MB / 0.8033 GB, free: 6.031 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/1.552, allocations: 60 kB / 0.8034 GB, free: 5.973 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03665/1.588, allocations: 15.85 MB / 0.8188 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003135/1.589, allocations: 95.95 kB / 0.8189 GB, free: 6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004566/1.589, allocations: 204 kB / 0.8191 GB, free: 5.801 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00751/1.597, allocations: 2.345 MB / 0.8214 GB, free: 3.457 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00898/1.606, allocations: 2.402 MB / 0.8238 GB, free: 1.051 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2988/1.905, allocations: 11.68 MB / 0.8352 GB, free: 147.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008424/1.913, allocations: 0.5803 MB / 0.8357 GB, free: 147.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001687/1.915, allocations: 0.5924 MB / 0.8363 GB, free: 147.5 MB / 0.5138 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.006697/1.921, allocations: 3.761 MB / 0.84 GB, free: 146.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.923, allocations: 0.6005 MB / 0.8406 GB, free: 146.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01471/1.937, allocations: 8.15 MB / 0.8485 GB, free: 143.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/1.938, allocations: 59.48 kB / 0.8486 GB, free: 143.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.767e-05/1.938, allocations: 8.906 kB / 0.8486 GB, free: 143.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.277e-05/1.938, allocations: 24.09 kB / 0.8486 GB, free: 143.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04494/1.983, allocations: 18.63 MB / 0.8668 GB, free: 136.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.387e-05/1.983, allocations: 12.97 kB / 0.8668 GB, free: 136.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/1.986, allocations: 0.6151 MB / 0.8674 GB, free: 136.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006327/1.992, allocations: 1.757 MB / 0.8692 GB, free: 135.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000757/1.993, allocations: 80.95 kB / 0.8692 GB, free: 135.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/2.008, allocations: 9.776 MB / 0.8788 GB, free: 131.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/2.008, allocations: 15.66 kB / 0.8788 GB, free: 131.1 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02029/2.028, allocations: 12.13 MB / 0.8906 GB, free: 126.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00389/2.032, allocations: 1.15 MB / 0.8918 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/2.034, allocations: 81.09 kB / 0.8918 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00314/2.037, allocations: 207 kB / 0.892 GB, free: 125.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000572/2.038, allocations: 251 kB / 0.8923 GB, free: 125.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/2.038, allocations: 115.3 kB / 0.8924 GB, free: 125.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006578/2.045, allocations: 4.041 MB / 0.8963 GB, free: 123 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.91e-07/2.045, allocations: 0 / 0.8963 GB, free: 123 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0126/2.057, allocations: 1.907 MB / 0.8982 GB, free: 121.1 MB / 0.5138 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.01959/2.077, allocations: 12.88 MB / 0.9108 GB, free: 108 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01515/2.092, allocations: 9.769 MB / 0.9203 GB, free: 98.29 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/2.092, allocations: 4 kB / 0.9203 GB, free: 98.29 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005092/2.097, allocations: 3.298 MB / 0.9235 GB, free: 94.98 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006621/2.104, allocations: 0.7929 MB / 0.9243 GB, free: 94.21 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1215/2.225, allocations: 69.78 MB / 0.9925 GB, free: 18.32 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007563/2.233, allocations: 5.594 MB / 0.9979 GB, free: 12.69 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007856/2.241, allocations: 3.311 MB / 1.001 GB, free: 9.375 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00486/2.246, allocations: 3.686 MB / 1.005 GB, free: 5.688 MB / 0.5138 GB Notification: Performance of SimCode: time 1.573e-06/2.246, allocations: 0 / 1.005 GB, free: 5.688 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4739/2.72, allocations: 142.3 MB / 1.144 GB, free: 72.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/2.72, allocations: 209.2 kB / 1.144 GB, free: 72.58 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.253/7.973, allocations: 64 / 1.144 GB, free: 72.58 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat