Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.0008469/0.0008467, 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.001094/0.001094, allocations: 175.2 kB / 16.58 MB, free: 6.84 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.531/1.531, allocations: 205.4 MB / 222.7 MB, free: 5.656 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.4016/0.4016, allocations: 43.55 MB / 314.6 MB, free: 9 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.0005061/0.0005062, allocations: 15.98 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1361, allocations: 58.85 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3186/0.4548, allocations: 62.11 MB / 0.4931 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03911/0.494, allocations: 13.57 MB / 0.5064 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01663/0.5106, allocations: 301.1 kB / 0.5067 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01176/0.5224, allocations: 3.197 MB / 0.5098 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03322/0.5557, allocations: 9.588 MB / 0.5192 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006186/0.5619, allocations: 1.169 MB / 0.5203 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06919/0.6311, allocations: 51.97 MB / 0.5711 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01412/0.6453, allocations: 8.161 MB / 0.579 GB, free: 4.773 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005675/0.651, allocations: 2.152 MB / 0.5811 GB, free: 2.613 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006375/0.6574, allocations: 3.377 MB / 0.5844 GB, free: 15.23 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002148/0.6596, allocations: 240 kB / 0.5847 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004272/0.6639, allocations: 1.229 MB / 0.5859 GB, free: 13.76 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005164/0.6691, allocations: 2.86 MB / 0.5887 GB, free: 10.89 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003114/0.6723, allocations: 1.326 MB / 0.59 GB, free: 9.559 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.6848, allocations: 9.566 MB / 0.5993 GB, free: 15.97 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.6848, allocations: 4 kB / 0.5993 GB, free: 15.96 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.6849, allocations: 0 / 0.5993 GB, free: 15.96 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004324/0.6853, allocations: 0 / 0.5993 GB, free: 15.96 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01848/0.7038, allocations: 6.884 MB / 0.606 GB, free: 9 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.7039, allocations: 8.031 kB / 0.606 GB, free: 8.992 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003911/0.7078, allocations: 1.154 MB / 0.6072 GB, free: 7.828 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04719/0.755, allocations: 8.478 MB / 0.6154 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01377/0.7688, allocations: 6.464 MB / 0.6217 GB, free: 8.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003998/0.7693, allocations: 381.8 kB / 0.6221 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.7711, allocations: 0.5074 MB / 0.6226 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2981/1.069, allocations: 15.41 MB / 0.6377 GB, free: 137.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002092/1.07, allocations: 67.31 kB / 0.6377 GB, free: 137.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006683/1.07, allocations: 239.8 kB / 0.638 GB, free: 137.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003435/1.074, allocations: 2.545 MB / 0.6404 GB, free: 137.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02384/1.098, allocations: 12.87 MB / 0.653 GB, free: 134.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07338/1.171, allocations: 57.17 MB / 0.7088 GB, free: 94.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/1.186, allocations: 6.357 MB / 0.715 GB, free: 90.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003674/1.19, allocations: 3.312 MB / 0.7183 GB, free: 87.35 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/1.205, allocations: 11.28 MB / 0.7293 GB, free: 75.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/1.205, allocations: 68.45 kB / 0.7294 GB, free: 75.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=245): time 6.011e-06/1.205, allocations: 4 kB / 0.7294 GB, free: 75.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=338): time 0.1147/1.32, allocations: 40.18 MB / 0.7686 GB, free: 35.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/1.32, allocations: 243.8 kB / 0.7688 GB, free: 35.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007171/1.327, allocations: 5.751 MB / 0.7745 GB, free: 29.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007933/1.328, allocations: 84.44 kB / 0.7745 GB, free: 29.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/1.33, allocations: 4.464 MB / 0.7789 GB, free: 24.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001583/1.332, allocations: 1.23 MB / 0.7801 GB, free: 23.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005284/1.332, allocations: 166 kB / 0.7803 GB, free: 23.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003149/1.333, allocations: 0.6492 MB / 0.7809 GB, free: 22.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004647/1.337, allocations: 3.741 MB / 0.7845 GB, free: 19.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006934/1.344, allocations: 8.265 MB / 0.7926 GB, free: 8.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007083/1.351, allocations: 5.438 MB / 0.7979 GB, free: 3.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-05/1.352, allocations: 44 kB / 0.798 GB, free: 3.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03126/1.383, allocations: 15.38 MB / 0.813 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002104/1.383, allocations: 75.95 kB / 0.8131 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002951/1.383, allocations: 160 kB / 0.8132 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.256/1.639, allocations: 4.122 MB / 0.8172 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005739/1.645, allocations: 1.803 MB / 0.819 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02535/1.671, allocations: 19.58 MB / 0.8381 GB, free: 133.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007057/1.678, allocations: 0.4948 MB / 0.8386 GB, free: 133.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.679, allocations: 466.4 kB / 0.839 GB, free: 133.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (966): * Single equations (assignments): 962 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005918/1.685, allocations: 3.116 MB / 0.8421 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.686, allocations: 0.5247 MB / 0.8426 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01911/1.705, allocations: 9.595 MB / 0.852 GB, free: 128.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.031e-05/1.705, allocations: 37.61 kB / 0.852 GB, free: 128.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.462e-05/1.705, allocations: 15.53 kB / 0.852 GB, free: 128.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-05/1.706, allocations: 19.45 kB / 0.852 GB, free: 128.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03921/1.745, allocations: 19.72 MB / 0.8713 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-05/1.745, allocations: 7.516 kB / 0.8713 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002436/1.747, allocations: 0.4905 MB / 0.8718 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01082/1.758, allocations: 3.659 MB / 0.8754 GB, free: 120.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007558/1.759, allocations: 67.62 kB / 0.8754 GB, free: 120.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0208/1.78, allocations: 17.14 MB / 0.8922 GB, free: 107.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/1.78, allocations: 11.95 kB / 0.8922 GB, free: 107.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02236/1.802, allocations: 14.18 MB / 0.906 GB, free: 93.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003303/1.805, allocations: 1.148 MB / 0.9071 GB, free: 92.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/1.807, allocations: 60 kB / 0.9072 GB, free: 92.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003336/1.811, allocations: 223.7 kB / 0.9074 GB, free: 92.11 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009154/1.812, allocations: 229.6 kB / 0.9076 GB, free: 91.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005004/1.812, allocations: 91.98 kB / 0.9077 GB, free: 91.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006994/1.819, allocations: 3.647 MB / 0.9113 GB, free: 88.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.7e-07/1.819, allocations: 4 kB / 0.9113 GB, free: 88.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008527/1.828, allocations: 1.697 MB / 0.9129 GB, free: 86.49 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.w) * 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 (256): * Single equations (assignments): 252 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02441/1.852, allocations: 14.9 MB / 0.9275 GB, free: 71.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01353/1.866, allocations: 9.181 MB / 0.9365 GB, free: 62.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.659e-06/1.866, allocations: 4 kB / 0.9365 GB, free: 62.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00553/1.871, allocations: 3.626 MB / 0.94 GB, free: 58.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006341/1.878, allocations: 0.733 MB / 0.9407 GB, free: 57.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1188/1.996, allocations: 62.95 MB / 1.002 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2216/2.218, allocations: 4.832 MB / 1.007 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007349/2.226, allocations: 2.604 MB / 1.009 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004984/2.231, allocations: 3.073 MB / 1.012 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.132e-06/2.231, allocations: 0 / 1.012 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1721/2.403, allocations: 135.1 MB / 1.144 GB, free: 53.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001228/2.403, allocations: 213.2 kB / 1.145 GB, free: 53.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.338/7.741, allocations: 0 / 1.145 GB, free: 53.57 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat