Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",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.001675/0.001679, allocations: 189.2 kB / 16.4 MB, free: 5.625 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.172/2.172, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001143/0.001143, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2978/0.2978, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004683/0.0004684, allocations: 19.98 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1281, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.4088/0.5369, allocations: 41.26 MB / 0.5191 GB, free: 9.906 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0287/0.5657, allocations: 10.52 MB / 0.5294 GB, free: 9.727 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01034/0.5761, allocations: 207.7 kB / 0.5296 GB, free: 9.727 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008434/0.5846, allocations: 2.016 MB / 0.5316 GB, free: 9.496 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02634/0.611, allocations: 5.908 MB / 0.5373 GB, free: 8.844 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005351/0.6164, allocations: 0.9631 MB / 0.5383 GB, free: 8.57 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03749/0.6539, allocations: 14.84 MB / 0.5528 GB, free: 5.383 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01228/0.6663, allocations: 6.242 MB / 0.5589 GB, free: 2.129 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003602/0.67, allocations: 1.393 MB / 0.5602 GB, free: 1.012 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003746/0.6737, allocations: 1.891 MB / 0.5621 GB, free: 15.45 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.6749, allocations: 206.6 kB / 0.5623 GB, free: 15.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.6788, allocations: 1.169 MB / 0.5634 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003825/0.6827, allocations: 2.123 MB / 0.5655 GB, free: 12.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.6846, allocations: 1.092 MB / 0.5666 GB, free: 11.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01401/0.6986, allocations: 7.893 MB / 0.5743 GB, free: 4.711 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.6987, allocations: 0 / 0.5743 GB, free: 4.711 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.6987, allocations: 0 / 0.5743 GB, free: 4.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003143/0.699, allocations: 0 / 0.5743 GB, free: 4.711 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02334/0.7224, allocations: 5.749 MB / 0.5799 GB, free: 14.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.7225, allocations: 9.562 kB / 0.5799 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003592/0.7261, allocations: 0.9181 MB / 0.5808 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1851/0.9112, allocations: 8.667 MB / 0.5892 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.9256, allocations: 4.118 MB / 0.5933 GB, free: 1.234 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/0.9262, allocations: 358.9 kB / 0.5936 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002274/0.9285, allocations: 432.7 kB / 0.594 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04409/0.9727, allocations: 13.97 MB / 0.6077 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003033/0.973, allocations: 55.53 kB / 0.6077 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001872/0.9749, allocations: 203.8 kB / 0.6079 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006975/0.9819, allocations: 2.402 MB / 0.6103 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04208/1.024, allocations: 11.82 MB / 0.6218 GB, free: 3.418 MB / 426.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.106/1.13, allocations: 51.68 MB / 0.6723 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/1.153, allocations: 4.689 MB / 0.6768 GB, free: 9.664 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03364/1.186, allocations: 12.49 MB / 0.689 GB, free: 12.71 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.642e-05/1.186, allocations: 55.83 kB / 0.6891 GB, free: 12.64 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=191): time 6.322e-06/1.186, allocations: 0 / 0.6891 GB, free: 12.64 MB / 0.4949 GB Notification: Performance of matching and sorting (n=242): time 0.6288/1.815, allocations: 42.68 MB / 0.7308 GB, free: 178.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.815, allocations: 239.2 kB / 0.731 GB, free: 178 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01606/1.831, allocations: 5.042 MB / 0.7359 GB, free: 176.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009142/1.833, allocations: 61.7 kB / 0.736 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004372/1.837, allocations: 3.78 MB / 0.7397 GB, free: 173.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001868/1.839, allocations: 0.9144 MB / 0.7406 GB, free: 172.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/1.84, allocations: 144.9 kB / 0.7407 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006917/1.841, allocations: 0.6096 MB / 0.7413 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008362/1.849, allocations: 3.233 MB / 0.7445 GB, free: 170.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/1.86, allocations: 7.488 MB / 0.7518 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.871, allocations: 4.769 MB / 0.7564 GB, free: 162 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001477/1.871, allocations: 42.59 kB / 0.7565 GB, free: 162 MB / 0.5105 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.0445/1.916, allocations: 13.64 MB / 0.7698 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/1.916, allocations: 75.12 kB / 0.7699 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001935/1.916, allocations: 152.6 kB / 0.77 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02068/1.937, allocations: 3.805 MB / 0.7737 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0095/1.946, allocations: 1.591 MB / 0.7753 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0433/1.99, allocations: 18.59 MB / 0.7934 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009406/1.999, allocations: 451.9 kB / 0.7939 GB, free: 128 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001565/2.001, allocations: 429 kB / 0.7943 GB, free: 127.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],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],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 (857): * Single equations (assignments): 853 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007193/2.008, allocations: 2.663 MB / 0.7969 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/2.009, allocations: 438.4 kB / 0.7973 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03104/2.041, allocations: 8.12 MB / 0.8052 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.42e-05/2.041, allocations: 31.55 kB / 0.8052 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/2.041, allocations: 12 kB / 0.8053 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.845e-05/2.041, allocations: 15.95 kB / 0.8053 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05642/2.097, allocations: 17.54 MB / 0.8224 GB, free: 98.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.603e-05/2.097, allocations: 0 / 0.8224 GB, free: 98.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003721/2.101, allocations: 387.4 kB / 0.8228 GB, free: 98.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02115/2.122, allocations: 3.831 MB / 0.8265 GB, free: 94.47 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006153/2.123, allocations: 45.8 kB / 0.8266 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04005/2.163, allocations: 17.02 MB / 0.8432 GB, free: 77.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/2.163, allocations: 4.031 kB / 0.8432 GB, free: 77.26 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03998/2.203, allocations: 12.62 MB / 0.8555 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003693/2.207, allocations: 0.9444 MB / 0.8564 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.209, allocations: 37.64 kB / 0.8565 GB, free: 63.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005013/2.214, allocations: 211.7 kB / 0.8567 GB, free: 63.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/2.215, allocations: 154.1 kB / 0.8568 GB, free: 63.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000342/2.215, allocations: 61.17 kB / 0.8569 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007561/2.223, allocations: 3.179 MB / 0.86 GB, free: 59.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.31e-07/2.223, allocations: 0 / 0.86 GB, free: 59.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00961/2.233, allocations: 1.468 MB / 0.8614 GB, free: 58.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (167): * Single equations (assignments): 163 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04056/2.273, allocations: 13.54 MB / 0.8746 GB, free: 44.95 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01766/2.291, allocations: 7.85 MB / 0.8823 GB, free: 37.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/2.291, allocations: 4 kB / 0.8823 GB, free: 37.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006905/2.298, allocations: 2.966 MB / 0.8852 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004466/2.302, allocations: 494.2 kB / 0.8857 GB, free: 33.65 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4186/2.721, allocations: 128.4 MB / 1.011 GB, free: 59.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01045/2.732, allocations: 4.214 MB / 1.015 GB, free: 59.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00615/2.738, allocations: 2.548 MB / 1.018 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/2.738, allocations: 0 / 1.018 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.184/7.922, allocations: 129 MB / 1.144 GB, free: 140.2 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)