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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 108.4 kB / 16.46 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 199.8 kB / 19.41 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.04759/0.04759, allocations: 9.245 MB / 311.9 MB, free: 0.75 MB / 238.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.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(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.88 kB / 434 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09843, allocations: 54.26 MB / 488.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01511/0.1135, allocations: 13.85 MB / 0.4904 GB, free: 9.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008425/0.122, allocations: 4.038 MB / 0.4943 GB, free: 5.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.1237, allocations: 55.88 kB / 0.4944 GB, free: 5.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009798/0.1246, allocations: 396.6 kB / 0.4948 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.1268, allocations: 0.9284 MB / 0.4957 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.1284, allocations: 0.9754 MB / 0.4966 GB, free: 3.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.131, allocations: 2.226 MB / 0.4988 GB, free: 1.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00256/0.1335, allocations: 2.134 MB / 0.5009 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.1347, allocations: 1.028 MB / 0.5019 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001537/0.1362, allocations: 1.276 MB / 0.5031 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003863/0.1366, allocations: 312 kB / 0.5034 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.1377, allocations: 0.7413 MB / 0.5041 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008808/0.1386, allocations: 0.9777 MB / 0.5051 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.14, allocations: 1.489 MB / 0.5065 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004195/0.1442, allocations: 3.903 MB / 0.5104 GB, free: 5.176 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1442, allocations: 0 / 0.5104 GB, free: 5.176 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1442, allocations: 4 kB / 0.5104 GB, free: 5.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.182e-05/0.1443, allocations: 0 / 0.5104 GB, free: 5.172 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.009269/0.1536, allocations: 4.23 MB / 0.5145 GB, free: 0.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1536, allocations: 8.031 kB / 0.5145 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005307/0.1541, allocations: 456.4 kB / 0.5149 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/0.1547, allocations: 310.9 kB / 0.5152 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1741/0.3288, allocations: 1.14 MB / 0.5163 GB, free: 35.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.329, allocations: 212.7 kB / 0.5166 GB, free: 35.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005221/0.3295, allocations: 298.1 kB / 0.5168 GB, free: 35.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007645/0.3371, allocations: 4.742 MB / 0.5215 GB, free: 32.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.575e-05/0.3372, allocations: 33.98 kB / 0.5215 GB, free: 32.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.3374, allocations: 130.4 kB / 0.5216 GB, free: 32.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004593/0.3379, allocations: 431.8 kB / 0.522 GB, free: 32.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006525/0.3444, allocations: 3.377 MB / 0.5253 GB, free: 31.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01937/0.3638, allocations: 21.6 MB / 0.5464 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004311/0.3681, allocations: 1.876 MB / 0.5483 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009709/0.3691, allocations: 0.6719 MB / 0.5489 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00574/0.3748, allocations: 5.564 MB / 0.5543 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.3748, allocations: 43.41 kB / 0.5544 GB, free: 8.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.485e-06/0.3748, allocations: 0 / 0.5544 GB, free: 8.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01894/0.3938, allocations: 9.591 MB / 0.5638 GB, free: 15.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.3938, allocations: 72.66 kB / 0.5638 GB, free: 15.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.3965, allocations: 1.811 MB / 0.5656 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.3966, allocations: 53.64 kB / 0.5656 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.398, allocations: 1.809 MB / 0.5674 GB, free: 11.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000549/0.3985, allocations: 0.5509 MB / 0.5679 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001053/0.3996, allocations: 0.7508 MB / 0.5687 GB, free: 10.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3997, allocations: 353.9 kB / 0.569 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/0.4017, allocations: 1.225 MB / 0.5702 GB, free: 8.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003757/0.4054, allocations: 3.41 MB / 0.5735 GB, free: 4.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006482/0.4119, allocations: 5.116 MB / 0.5785 GB, free: 14.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.503e-05/0.412, allocations: 24 kB / 0.5786 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008596/0.4206, allocations: 4.809 MB / 0.5833 GB, free: 9.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.785e-05/0.4206, allocations: 40.94 kB / 0.5833 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.4208, allocations: 76 kB / 0.5834 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009395/0.4217, allocations: 379.7 kB / 0.5837 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/0.4245, allocations: 0.8928 MB / 0.5846 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005893/0.4304, allocations: 4.289 MB / 0.5888 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/0.4328, allocations: 215.8 kB / 0.589 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004411/0.4332, allocations: 228 kB / 0.5892 GB, free: 3.188 MB / 414.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.001725/0.4349, allocations: 0.9361 MB / 0.5901 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003622/0.4353, allocations: 202.7 kB / 0.5903 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004434/0.4397, allocations: 2.593 MB / 0.5929 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.4397, allocations: 16 kB / 0.5929 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4398, allocations: 4 kB / 0.5929 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4398, allocations: 3.984 kB / 0.5929 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.4517, allocations: 6.426 MB / 0.5992 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.4517, allocations: 4 kB / 0.5992 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.4528, allocations: 268.1 kB / 0.5994 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006771/0.4535, allocations: 260.6 kB / 0.5997 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.4536, allocations: 34.31 kB / 0.5997 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004403/0.458, allocations: 3.458 MB / 0.6031 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.458, allocations: 5.719 kB / 0.6031 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005544/0.4635, allocations: 3.905 MB / 0.6069 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005367/0.4641, allocations: 255.8 kB / 0.6071 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003086/0.4644, allocations: 31.94 kB / 0.6072 GB, free: 456 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008454/0.4652, allocations: 103.8 kB / 0.6073 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.4654, allocations: 92.81 kB / 0.6074 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.229e-05/0.4655, allocations: 39.94 kB / 0.6074 GB, free: 220 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001732/0.4673, allocations: 1.096 MB / 0.6085 GB, free: 15.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4673, allocations: 0 / 0.6085 GB, free: 15.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002658/0.4699, allocations: 0.6367 MB / 0.6091 GB, free: 14.49 MB / 446.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.00617/0.4761, allocations: 4.491 MB / 0.6135 GB, free: 9.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005589/0.4817, allocations: 3.194 MB / 0.6166 GB, free: 6.723 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.4817, allocations: 0 / 0.6166 GB, free: 6.723 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.4834, allocations: 1.202 MB / 0.6178 GB, free: 5.504 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.4856, allocations: 445.5 kB / 0.6182 GB, free: 5.098 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03907/0.5247, allocations: 24.54 MB / 0.6422 GB, free: 9.543 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.5272, allocations: 1.829 MB / 0.6439 GB, free: 7.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00227/0.5295, allocations: 0.855 MB / 0.6448 GB, free: 6.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/0.5312, allocations: 1.054 MB / 0.6458 GB, free: 5.766 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5312, allocations: 0 / 0.6458 GB, free: 5.766 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1348/0.666, allocations: 45.88 MB / 0.6906 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.1, allocations: 10.58 kB / 0.6906 GB, free: 8.039 MB / 0.5137 GB " [Timeout remaining time 645] (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: 17.6409244351089] Failed to read output from testmodel.py, exit status != 0: 15.208012542221695 15.233137139 15.084369625 Calling exit ...