Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.001569/0.001569, allocations: 107.2 kB / 16.45 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.001749/0.001749, allocations: 196.6 kB / 19.41 MB, free: 3.672 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.363/1.363, allocations: 225.6 MB / 247.8 MB, free: 13.97 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.04665/0.04665, allocations: 9.243 MB / 311.9 MB, free: 0.7461 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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 79.86 kB / 434 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09454, allocations: 54.25 MB / 488.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01009/0.1046, allocations: 8.351 MB / 496.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005274/0.1099, allocations: 2.612 MB / 499.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007867/0.1107, allocations: 35.94 kB / 499.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008228/0.1115, allocations: 377.5 kB / 499.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.1147, allocations: 1.432 MB / 0.4893 GB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.1151, allocations: 131.8 kB / 0.4895 GB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003243/0.1183, allocations: 2.498 MB / 0.4919 GB, free: 8.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.1194, allocations: 0.7526 MB / 0.4926 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001292/0.1207, allocations: 0.8872 MB / 0.4935 GB, free: 6.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001794/0.1225, allocations: 1.421 MB / 0.4949 GB, free: 5.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004039/0.1229, allocations: 232 kB / 0.4951 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001643/0.1245, allocations: 0.8815 MB / 0.496 GB, free: 4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.1258, allocations: 1.227 MB / 0.4972 GB, free: 2.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.1274, allocations: 1.542 MB / 0.4987 GB, free: 1.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006294/0.1337, allocations: 4.988 MB / 0.5036 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1337, allocations: 0 / 0.5036 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1337, allocations: 0 / 0.5036 GB, free: 12.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.787e-05/0.1338, allocations: 0 / 0.5036 GB, free: 12.21 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.008649/0.1424, allocations: 3.918 MB / 0.5074 GB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1425, allocations: 8.031 kB / 0.5074 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007118/0.1432, allocations: 0.5307 MB / 0.5079 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006414/0.1496, allocations: 1.785 MB / 0.5097 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003263/0.1529, allocations: 1.361 MB / 0.511 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.1531, allocations: 144 kB / 0.5111 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005063/0.1536, allocations: 195.8 kB / 0.5113 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1996/0.3531, allocations: 7.904 MB / 0.519 GB, free: 32.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.523e-05/0.3532, allocations: 25.47 kB / 0.5191 GB, free: 32.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/0.3535, allocations: 90.75 kB / 0.5191 GB, free: 32.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002612/0.3561, allocations: 1.845 MB / 0.5209 GB, free: 32.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.3698, allocations: 7.123 MB / 0.5279 GB, free: 29.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03258/0.4024, allocations: 23.88 MB / 0.5512 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004871/0.4072, allocations: 2.299 MB / 0.5535 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.4083, allocations: 0.7632 MB / 0.5542 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006713/0.415, allocations: 4.607 MB / 0.5587 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.4151, allocations: 39.56 kB / 0.5587 GB, free: 4.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 4.408e-06/0.4151, allocations: 0 / 0.5587 GB, free: 4.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.014/0.4291, allocations: 7.104 MB / 0.5657 GB, free: 13.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/0.4292, allocations: 74.72 kB / 0.5657 GB, free: 13.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004267/0.4334, allocations: 2.604 MB / 0.5683 GB, free: 10.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.4335, allocations: 45.7 kB / 0.5683 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001674/0.4352, allocations: 2.136 MB / 0.5704 GB, free: 8.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006037/0.4358, allocations: 0.589 MB / 0.571 GB, free: 8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/0.437, allocations: 0.7785 MB / 0.5718 GB, free: 7.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4371, allocations: 301.1 kB / 0.572 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/0.4392, allocations: 1.288 MB / 0.5733 GB, free: 5.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003919/0.4431, allocations: 3.38 MB / 0.5766 GB, free: 1.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006418/0.4496, allocations: 4.998 MB / 0.5815 GB, free: 11.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.198e-05/0.4496, allocations: 20 kB / 0.5815 GB, free: 11.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009039/0.4587, allocations: 4.829 MB / 0.5862 GB, free: 6.355 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.636e-05/0.4587, allocations: 36 kB / 0.5863 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.4589, allocations: 76.12 kB / 0.5863 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009126/0.4598, allocations: 347.2 kB / 0.5867 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002911/0.4627, allocations: 0.8422 MB / 0.5875 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00492/0.4676, allocations: 3.654 MB / 0.591 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/0.4705, allocations: 200 kB / 0.5912 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006976/0.4712, allocations: 225 kB / 0.5915 GB, free: 0.8555 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (463): * Single equations (assignments): 458 * Array equations: 4 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003454/0.4746, allocations: 1.547 MB / 0.593 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005061/0.4751, allocations: 231.5 kB / 0.5932 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.4792, allocations: 2.001 MB / 0.5951 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001097/0.4793, allocations: 23.98 kB / 0.5952 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/0.4793, allocations: 10.23 kB / 0.5952 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.4794, allocations: 7.922 kB / 0.5952 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.4908, allocations: 5.65 MB / 0.6007 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.4908, allocations: 7.938 kB / 0.6007 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007926/0.4916, allocations: 195.7 kB / 0.6009 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006596/0.4922, allocations: 240.9 kB / 0.6011 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-05/0.4923, allocations: 27.98 kB / 0.6011 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003605/0.4959, allocations: 2.947 MB / 0.604 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.4959, allocations: 9.25 kB / 0.604 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00479/0.5007, allocations: 3.094 MB / 0.6071 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008073/0.5015, allocations: 311.5 kB / 0.6074 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004104/0.5019, allocations: 24 kB / 0.6074 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009177/0.5028, allocations: 63.92 kB / 0.6074 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.503, allocations: 84.83 kB / 0.6075 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.554e-05/0.5031, allocations: 47.98 kB / 0.6076 GB, free: 0 / 430.1 MB Notification: Performance of sorting global known variables: time 0.002994/0.5061, allocations: 1.675 MB / 0.6092 GB, free: 14.31 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5061, allocations: 0 / 0.6092 GB, free: 14.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002876/0.509, allocations: 0.6874 MB / 0.6099 GB, free: 13.62 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005232/0.5142, allocations: 3.733 MB / 0.6135 GB, free: 9.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0054/0.5196, allocations: 3.028 MB / 0.6165 GB, free: 6.797 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5196, allocations: 1.469 kB / 0.6165 GB, free: 6.797 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.5212, allocations: 0.9804 MB / 0.6174 GB, free: 5.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.5233, allocations: 400.2 kB / 0.6178 GB, free: 5.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04518/0.5685, allocations: 27.39 MB / 0.6446 GB, free: 7.273 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003755/0.5722, allocations: 2.558 MB / 0.6471 GB, free: 4.684 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00287/0.5751, allocations: 1.176 MB / 0.6482 GB, free: 3.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/0.577, allocations: 1.3 MB / 0.6495 GB, free: 2.199 MB / 478.1 MB Notification: Performance of SimCode: time 9.21e-07/0.577, allocations: 0 / 0.6495 GB, free: 2.199 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09918/0.6762, allocations: 47.1 MB / 0.6955 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.25, allocations: 6.875 kB / 0.6955 GB, free: 3.305 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.67120354110375] Failed to read output from testmodel.py, exit status != 0: 15.363234314136207 15.380872779 15.24375639 Calling exit ...