Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.001416/0.001416, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.001567/0.001567, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.524/1.524, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.04942/0.04942, allocations: 9.235 MB / 318.8 MB, free: 15.55 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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.002057/0.002057, allocations: 64.53 kB / 443.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1211, allocations: 55.43 MB / 498.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.008458/0.1296, allocations: 8.562 MB / 0.4953 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007224/0.1368, allocations: 2.667 MB / 0.498 GB, free: 11.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001997/0.1388, allocations: 35.88 kB / 0.498 GB, free: 11.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.1403, allocations: 385.4 kB / 0.4984 GB, free: 10.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004641/0.1449, allocations: 1.412 MB / 0.4997 GB, free: 9.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007377/0.1456, allocations: 155.7 kB / 0.4999 GB, free: 9.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004567/0.1502, allocations: 2.506 MB / 0.5023 GB, free: 6.848 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002148/0.1524, allocations: 0.8505 MB / 0.5032 GB, free: 5.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/0.1547, allocations: 0.9416 MB / 0.5041 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.1575, allocations: 1.44 MB / 0.5055 GB, free: 3.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009412/0.1584, allocations: 243.9 kB / 0.5057 GB, free: 3.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002623/0.161, allocations: 0.8816 MB / 0.5066 GB, free: 2.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001999/0.163, allocations: 1.238 MB / 0.5078 GB, free: 1.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002692/0.1657, allocations: 1.58 MB / 0.5093 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008007/0.1737, allocations: 5.077 MB / 0.5143 GB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1737, allocations: 0 / 0.5143 GB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.1737, allocations: 0 / 0.5143 GB, free: 10.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001687/0.1739, allocations: 0 / 0.5143 GB, free: 10.53 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01492/0.1888, allocations: 4.386 MB / 0.5186 GB, free: 6.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.305e-05/0.1889, allocations: 12.03 kB / 0.5186 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002489/0.1892, allocations: 68 kB / 0.5186 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001762/0.1909, allocations: 0.5472 MB / 0.5192 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007735/0.1987, allocations: 1.816 MB / 0.521 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003649/0.2023, allocations: 1.363 MB / 0.5223 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.2025, allocations: 152 kB / 0.5224 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007694/0.2032, allocations: 199.8 kB / 0.5226 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/0.2196, allocations: 8.184 MB / 0.5306 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.259e-05/0.2197, allocations: 19.81 kB / 0.5306 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004437/0.2201, allocations: 95.86 kB / 0.5307 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003794/0.2239, allocations: 1.911 MB / 0.5326 GB, free: 7.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01809/0.242, allocations: 7.439 MB / 0.5399 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04944/0.2915, allocations: 24.86 MB / 0.5641 GB, free: 6.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0066/0.2981, allocations: 2.332 MB / 0.5664 GB, free: 4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.2999, allocations: 0.8114 MB / 0.5672 GB, free: 3.191 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00817/0.3081, allocations: 4.439 MB / 0.5715 GB, free: 14.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.3082, allocations: 47.5 kB / 0.5716 GB, free: 14.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=130): time 4.929e-06/0.3082, allocations: 0 / 0.5716 GB, free: 14.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=144): time 0.0128/0.321, allocations: 4.693 MB / 0.5762 GB, free: 9.578 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.321, allocations: 68.41 kB / 0.5762 GB, free: 9.496 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004525/0.3256, allocations: 2.505 MB / 0.5787 GB, free: 6.957 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002639/0.3258, allocations: 45.7 kB / 0.5787 GB, free: 6.906 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/0.3278, allocations: 2.157 MB / 0.5808 GB, free: 4.727 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007074/0.3285, allocations: 0.5542 MB / 0.5814 GB, free: 4.168 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.3297, allocations: 0.7506 MB / 0.5821 GB, free: 3.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3298, allocations: 301.1 kB / 0.5824 GB, free: 3.113 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002649/0.3325, allocations: 1.241 MB / 0.5836 GB, free: 1.871 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.328/0.6605, allocations: 3.3 MB / 0.5868 GB, free: 85.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006685/0.6672, allocations: 4.884 MB / 0.5916 GB, free: 82.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.161e-05/0.6672, allocations: 22.34 kB / 0.5916 GB, free: 82.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01063/0.6779, allocations: 4.641 MB / 0.5961 GB, free: 80.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.657e-05/0.678, allocations: 40.81 kB / 0.5962 GB, free: 80.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/0.6781, allocations: 72.27 kB / 0.5963 GB, free: 80.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007918/0.6789, allocations: 233.5 kB / 0.5965 GB, free: 80.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00364/0.6825, allocations: 0.8238 MB / 0.5973 GB, free: 80.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003246/0.6858, allocations: 2.865 MB / 0.6001 GB, free: 78.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/0.6891, allocations: 182.3 kB / 0.6003 GB, free: 78.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007607/0.6899, allocations: 223.7 kB / 0.6005 GB, free: 78.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (445): * Single equations (assignments): 440 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003303/0.6932, allocations: 1.581 MB / 0.602 GB, free: 77.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/0.6937, allocations: 221.2 kB / 0.6022 GB, free: 77.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003216/0.6969, allocations: 1.931 MB / 0.6041 GB, free: 77.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.813e-05/0.697, allocations: 29.52 kB / 0.6041 GB, free: 77.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.697, allocations: 5.594 kB / 0.6041 GB, free: 77.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.697, allocations: 3.656 kB / 0.6041 GB, free: 77.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008586/0.7056, allocations: 5.821 MB / 0.6098 GB, free: 75.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.7056, allocations: 3.906 kB / 0.6098 GB, free: 75.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008394/0.7065, allocations: 211.4 kB / 0.61 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003617/0.7068, allocations: 140.9 kB / 0.6102 GB, free: 74.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.01e-05/0.7069, allocations: 31.2 kB / 0.6102 GB, free: 74.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.709, allocations: 2.512 MB / 0.6127 GB, free: 72.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.709, allocations: 4 kB / 0.6127 GB, free: 72.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003738/0.7127, allocations: 3.076 MB / 0.6157 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005318/0.7133, allocations: 305.7 kB / 0.6159 GB, free: 69.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.7135, allocations: 20 kB / 0.616 GB, free: 69.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/0.7143, allocations: 70.98 kB / 0.616 GB, free: 69.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.7145, allocations: 96.23 kB / 0.6161 GB, free: 69.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.7146, allocations: 47.11 kB / 0.6162 GB, free: 69.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00203/0.7166, allocations: 1.611 MB / 0.6177 GB, free: 67.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7166, allocations: 0 / 0.6177 GB, free: 67.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003222/0.7198, allocations: 0.6395 MB / 0.6184 GB, free: 67.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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 {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004112/0.724, allocations: 3.71 MB / 0.622 GB, free: 63.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004718/0.7287, allocations: 2.914 MB / 0.6248 GB, free: 60.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.7287, allocations: 4.125 kB / 0.6248 GB, free: 60.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.7299, allocations: 0.9513 MB / 0.6258 GB, free: 59.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.732, allocations: 410.4 kB / 0.6262 GB, free: 59.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03758/0.7695, allocations: 26.77 MB / 0.6523 GB, free: 29.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002702/0.7722, allocations: 2.598 MB / 0.6548 GB, free: 27.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002686/0.7749, allocations: 1.14 MB / 0.656 GB, free: 25.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/0.7767, allocations: 1.312 MB / 0.6572 GB, free: 24.58 MB / 446.1 MB Notification: Performance of SimCode: time 5.15e-06/0.7767, allocations: 0 / 0.6572 GB, free: 24.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08756/0.8643, allocations: 45.35 MB / 0.7015 GB, free: 11.44 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/17.2, allocations: 7.922 kB / 0.7015 GB, free: 11.43 MB / 478.1 MB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.292691829963587] Failed to read output from testmodel.py, exit status != 0: 17.380112946033478 17.405403299 17.226505889 Calling exit ...