Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 212.1 kB / 23.02 MB, free: 4.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04914/0.04914, allocations: 9.229 MB / 322.4 MB, free: 9.852 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 71.89 kB / 448.5 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1203, allocations: 55.46 MB / 0.4921 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01468/0.135, allocations: 11.83 MB / 0.5037 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009444/0.1444, allocations: 3.918 MB / 0.5075 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002823/0.1472, allocations: 67.75 kB / 0.5075 GB, free: 7.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.1486, allocations: 388.7 kB / 0.5079 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003048/0.1516, allocations: 0.9322 MB / 0.5088 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.1537, allocations: 0.9715 MB / 0.5098 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00345/0.1571, allocations: 2.222 MB / 0.5119 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00278/0.1599, allocations: 2.045 MB / 0.5139 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2912/0.4511, allocations: 1.042 MB / 0.515 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002132/0.4532, allocations: 1.278 MB / 0.5162 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000601/0.4538, allocations: 314.9 kB / 0.5165 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001729/0.4556, allocations: 0.731 MB / 0.5172 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.4567, allocations: 0.9732 MB / 0.5182 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001862/0.4586, allocations: 1.172 MB / 0.5193 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00679/0.4653, allocations: 3.922 MB / 0.5231 GB, free: 8.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.224e-05/0.4654, allocations: 3.312 kB / 0.5232 GB, free: 8.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.4654, allocations: 3.188 kB / 0.5232 GB, free: 8.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002142/0.4656, allocations: 2.062 kB / 0.5232 GB, free: 8.594 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01464/0.4802, allocations: 4.216 MB / 0.5273 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.4803, allocations: 9.406 kB / 0.5273 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001627/0.4804, allocations: 79.08 kB / 0.5274 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008371/0.4813, allocations: 452.6 kB / 0.5278 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.4821, allocations: 308.9 kB / 0.5281 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.4844, allocations: 1.077 MB / 0.5291 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.4846, allocations: 216.5 kB / 0.5293 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004512/0.485, allocations: 301.1 kB / 0.5296 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009972/0.495, allocations: 4.736 MB / 0.5343 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001372/0.4951, allocations: 32.52 kB / 0.5343 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.4954, allocations: 132 kB / 0.5344 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006733/0.4961, allocations: 430 kB / 0.5348 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008528/0.5046, allocations: 3.373 MB / 0.5381 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03152/0.5361, allocations: 20.71 MB / 0.5583 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005361/0.5415, allocations: 1.431 MB / 0.5597 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.5426, allocations: 0.6711 MB / 0.5604 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006785/0.5494, allocations: 3.442 MB / 0.5638 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.644e-05/0.5495, allocations: 46.77 kB / 0.5638 GB, free: 15.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 3.788e-06/0.5495, allocations: 0 / 0.5638 GB, free: 15.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02484/0.5743, allocations: 9.298 MB / 0.5729 GB, free: 7.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.5744, allocations: 64.72 kB / 0.5729 GB, free: 6.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002882/0.5773, allocations: 1.807 MB / 0.5747 GB, free: 5.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.5775, allocations: 52.42 kB / 0.5748 GB, free: 5.137 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.5789, allocations: 1.806 MB / 0.5765 GB, free: 3.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000632/0.5795, allocations: 0.5537 MB / 0.5771 GB, free: 2.793 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/0.5806, allocations: 0.7574 MB / 0.5778 GB, free: 2.031 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.5808, allocations: 357.9 kB / 0.5781 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.5828, allocations: 1.222 MB / 0.5793 GB, free: 464 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004035/0.5868, allocations: 3.409 MB / 0.5827 GB, free: 12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006813/0.5936, allocations: 5.113 MB / 0.5877 GB, free: 6.121 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.206e-05/0.5937, allocations: 24 kB / 0.5877 GB, free: 6.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009272/0.603, allocations: 4.82 MB / 0.5924 GB, free: 1.734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.914e-05/0.603, allocations: 40 kB / 0.5924 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.813e-05/0.6031, allocations: 80.5 kB / 0.5925 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009779/0.6041, allocations: 367.4 kB / 0.5929 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/0.6073, allocations: 0.895 MB / 0.5937 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006186/0.6135, allocations: 4.168 MB / 0.5978 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/0.6172, allocations: 216.3 kB / 0.598 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007611/0.618, allocations: 232 kB / 0.5982 GB, free: 11.78 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002137/0.6201, allocations: 0.9268 MB / 0.5991 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/0.6205, allocations: 199.6 kB / 0.5993 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.625, allocations: 2.591 MB / 0.6019 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/0.625, allocations: 16 kB / 0.6019 GB, free: 8.074 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.625, allocations: 4 kB / 0.6019 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.625, allocations: 11.91 kB / 0.6019 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/0.6376, allocations: 6.095 MB / 0.6078 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6376, allocations: 4 kB / 0.6078 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.6388, allocations: 267.6 kB / 0.6081 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007872/0.6396, allocations: 261 kB / 0.6083 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.6397, allocations: 31.98 kB / 0.6084 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00472/0.6444, allocations: 3.322 MB / 0.6116 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.6444, allocations: 11.98 kB / 0.6116 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005894/0.6503, allocations: 3.906 MB / 0.6154 GB, free: 9.914 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007585/0.6511, allocations: 170.7 kB / 0.6156 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002459/0.6513, allocations: 31.23 kB / 0.6156 GB, free: 9.719 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008362/0.6521, allocations: 103.8 kB / 0.6157 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.6524, allocations: 104.7 kB / 0.6158 GB, free: 9.516 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.445e-05/0.6525, allocations: 36 kB / 0.6159 GB, free: 9.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.6544, allocations: 1.088 MB / 0.6169 GB, free: 8.402 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6544, allocations: 0 / 0.6169 GB, free: 8.402 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003145/0.6575, allocations: 0.6328 MB / 0.6176 GB, free: 7.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006064/0.6636, allocations: 4.485 MB / 0.6219 GB, free: 3.203 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00589/0.6695, allocations: 3.202 MB / 0.6251 GB, free: 0 / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.6695, allocations: 0 / 0.6251 GB, free: 0 / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.6714, allocations: 1.202 MB / 0.6262 GB, free: 14.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.6736, allocations: 466.4 kB / 0.6267 GB, free: 14.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04137/0.715, allocations: 24.57 MB / 0.6507 GB, free: 2.812 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/0.7167, allocations: 1.251 MB / 0.6519 GB, free: 1.531 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002238/0.7189, allocations: 0.8601 MB / 0.6527 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/0.7205, allocations: 1.058 MB / 0.6538 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of SimCode: time 1.483e-06/0.7205, allocations: 0 / 0.6538 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1041/0.8246, allocations: 48.25 MB / 0.7009 GB, free: 15.81 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.88/17.71, allocations: 8.062 kB / 0.7009 GB, free: 15.8 MB / 0.545 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.85755269799847] Failed to read output from testmodel.py, exit status != 0: 17.90494887297973 17.936225991 17.46480529 Calling exit ...