Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.001675/0.001675, 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.002171/0.002171, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.585/1.585, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.08253/0.08253, allocations: 9.242 MB / 322.5 MB, free: 9.863 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.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.002004/0.002004, allocations: 67.89 kB / 448.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1211, allocations: 55.47 MB / 0.4921 GB, free: 7.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007142/0.1282, allocations: 5.182 MB / 0.4972 GB, free: 1.867 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003934/0.1322, allocations: 1.974 MB / 0.4991 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008764/0.1331, allocations: 27.88 kB / 0.4991 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008969/0.1339, allocations: 270.4 kB / 0.4994 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003195/0.1371, allocations: 1.133 MB / 0.5005 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.1373, allocations: 47.91 kB / 0.5005 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002425/0.1397, allocations: 1.875 MB / 0.5024 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.1399, allocations: 58.94 kB / 0.5024 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009049/0.1409, allocations: 0.6498 MB / 0.503 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.1424, allocations: 1.102 MB / 0.5041 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003565/0.1428, allocations: 176 kB / 0.5043 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.1441, allocations: 0.6709 MB / 0.5049 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.1452, allocations: 0.9542 MB / 0.5059 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.1463, allocations: 0.807 MB / 0.5067 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005366/0.1517, allocations: 4.058 MB / 0.5106 GB, free: 4.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1517, allocations: 0 / 0.5106 GB, free: 4.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1517, allocations: 0 / 0.5106 GB, free: 4.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.1518, allocations: 0 / 0.5106 GB, free: 4.012 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.00702/0.1589, allocations: 2.565 MB / 0.5131 GB, free: 1.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.1589, allocations: 8.031 kB / 0.5131 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.49e-05/0.159, allocations: 54.72 kB / 0.5132 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006618/0.1597, allocations: 429.1 kB / 0.5136 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2678/0.4274, allocations: 1.691 MB / 0.5153 GB, free: 24.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.43, allocations: 1.042 MB / 0.5163 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.4302, allocations: 101.2 kB / 0.5164 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004074/0.4306, allocations: 131.8 kB / 0.5165 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009579/0.4401, allocations: 6.491 MB / 0.5228 GB, free: 23.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.87e-05/0.4402, allocations: 23.48 kB / 0.5229 GB, free: 23.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.4404, allocations: 62.19 kB / 0.5229 GB, free: 23.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003116/0.4435, allocations: 1.622 MB / 0.5245 GB, free: 22.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.4574, allocations: 6.048 MB / 0.5304 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03501/0.4924, allocations: 17 MB / 0.547 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.4953, allocations: 1.044 MB / 0.548 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008629/0.4962, allocations: 0.4964 MB / 0.5485 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003723/0.4999, allocations: 1.576 MB / 0.55 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.5, allocations: 42.98 kB / 0.5501 GB, free: 6.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 3.727e-06/0.5, allocations: 0.75 kB / 0.5501 GB, free: 6.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.00303/0.503, allocations: 1.502 MB / 0.5516 GB, free: 5.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.503, allocations: 59.84 kB / 0.5516 GB, free: 5.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.5063, allocations: 2.015 MB / 0.5536 GB, free: 3.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.5063, allocations: 33.7 kB / 0.5536 GB, free: 3.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00085/0.5072, allocations: 1.716 MB / 0.5553 GB, free: 1.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002991/0.5075, allocations: 341.4 kB / 0.5556 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007884/0.5083, allocations: 0.5648 MB / 0.5562 GB, free: 400 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.859e-05/0.5084, allocations: 363 kB / 0.5565 GB, free: 32 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/0.5102, allocations: 0.9201 MB / 0.5574 GB, free: 15.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/0.5137, allocations: 2.577 MB / 0.5599 GB, free: 11.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005501/0.5192, allocations: 3.72 MB / 0.5636 GB, free: 7.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.646e-05/0.5193, allocations: 20 kB / 0.5636 GB, free: 7.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.007317/0.5266, allocations: 3.432 MB / 0.5669 GB, free: 3.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.358e-05/0.5267, allocations: 30.81 kB / 0.567 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/0.5268, allocations: 62.56 kB / 0.567 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000111/0.527, allocations: 76 kB / 0.5671 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.5291, allocations: 0.6107 MB / 0.5677 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001869/0.5293, allocations: 131.4 kB / 0.5678 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/0.5323, allocations: 424.8 kB / 0.5682 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004084/0.5327, allocations: 176 kB / 0.5684 GB, free: 2.242 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (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 (334): * Single equations (assignments): 330 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002642/0.5353, allocations: 1.307 MB / 0.5697 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.5358, allocations: 154.9 kB / 0.5698 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.5381, allocations: 1.063 MB / 0.5708 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/0.5382, allocations: 19.98 kB / 0.5709 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.5383, allocations: 3.938 kB / 0.5709 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.5383, allocations: 4.875 kB / 0.5709 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007746/0.546, allocations: 3.408 MB / 0.5742 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.546, allocations: 0 / 0.5742 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005518/0.5466, allocations: 104 kB / 0.5743 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.5466, allocations: 4 kB / 0.5743 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.5467, allocations: 19.98 kB / 0.5743 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.5467, allocations: 7.938 kB / 0.5743 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5467, allocations: 0 / 0.5743 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/0.5495, allocations: 1.74 MB / 0.576 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005599/0.55, allocations: 178.8 kB / 0.5762 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/0.5504, allocations: 19 kB / 0.5762 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006793/0.551, allocations: 28.91 kB / 0.5763 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.5511, allocations: 45.05 kB / 0.5763 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.5512, allocations: 27.98 kB / 0.5763 GB, free: 10 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003128/0.5543, allocations: 1.313 MB / 0.5776 GB, free: 8.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5543, allocations: 0 / 0.5776 GB, free: 8.695 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003691/0.558, allocations: 0.627 MB / 0.5782 GB, free: 8.066 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (55): * Single equations (assignments): 51 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003782/0.5618, allocations: 2.363 MB / 0.5805 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.5662, allocations: 1.939 MB / 0.5824 GB, free: 3.734 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5662, allocations: 256 / 0.5824 GB, free: 3.734 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007408/0.567, allocations: 454.4 kB / 0.5828 GB, free: 3.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.5689, allocations: 291.9 kB / 0.5831 GB, free: 3.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0418/0.6107, allocations: 20.05 MB / 0.6027 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003557/0.6142, allocations: 1.588 MB / 0.6043 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00277/0.617, allocations: 0.8852 MB / 0.6051 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/0.6188, allocations: 0.9329 MB / 0.606 GB, free: 9.41 MB / 446.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6188, allocations: 0 / 0.606 GB, free: 9.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08909/0.7079, allocations: 35.21 MB / 0.6404 GB, free: 6.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/15.84, allocations: 15.14 kB / 0.6404 GB, free: 6.648 MB / 478.1 MB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.001779224956408] Failed to read output from testmodel.py, exit status != 0: 16.027679624967277 16.053239572 15.896632497 Calling exit ...