Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.001268/0.001268, allocations: 117.4 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.001401/0.001401, allocations: 214.3 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.532/1.532, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.04947/0.04947, allocations: 9.227 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.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.001998/0.001998, allocations: 66.92 kB / 443.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1112, allocations: 55.43 MB / 498.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01058/0.1217, allocations: 10.54 MB / 0.4973 GB, free: 12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007256/0.129, allocations: 3.01 MB / 0.5002 GB, free: 8.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001913/0.1309, allocations: 51.81 kB / 0.5003 GB, free: 8.934 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.1324, allocations: 460.8 kB / 0.5007 GB, free: 8.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004767/0.1372, allocations: 1.63 MB / 0.5023 GB, free: 6.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009215/0.1381, allocations: 219.6 kB / 0.5025 GB, free: 6.629 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005041/0.1431, allocations: 2.996 MB / 0.5054 GB, free: 3.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.1451, allocations: 1.003 MB / 0.5064 GB, free: 2.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002141/0.1473, allocations: 1.117 MB / 0.5075 GB, free: 1.469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.1502, allocations: 1.677 MB / 0.5091 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009793/0.1512, allocations: 280 kB / 0.5094 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002385/0.1536, allocations: 0.9167 MB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.1556, allocations: 1.418 MB / 0.5117 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003386/0.159, allocations: 1.844 MB / 0.5135 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00896/0.168, allocations: 5.707 MB / 0.5191 GB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.168, allocations: 0 / 0.5191 GB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.168, allocations: 0 / 0.5191 GB, free: 5.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001925/0.1682, allocations: 0 / 0.5191 GB, free: 5.586 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01897/0.1871, allocations: 5.874 MB / 0.5248 GB, free: 15.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.1872, allocations: 12.03 kB / 0.5248 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002018/0.1874, allocations: 92.98 kB / 0.5249 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002367/0.1898, allocations: 0.6262 MB / 0.5255 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007795/0.1976, allocations: 1.862 MB / 0.5273 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003419/0.201, allocations: 1.588 MB / 0.5289 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.2012, allocations: 180.7 kB / 0.5291 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005892/0.2018, allocations: 247.8 kB / 0.5293 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01765/0.2194, allocations: 9.307 MB / 0.5384 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00019/0.2196, allocations: 27.77 kB / 0.5384 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008721/0.2205, allocations: 115.8 kB / 0.5385 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003799/0.2243, allocations: 2.083 MB / 0.5405 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01941/0.2437, allocations: 8.245 MB / 0.5486 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05251/0.2962, allocations: 29.98 MB / 0.5779 GB, free: 8.078 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008618/0.3048, allocations: 2.927 MB / 0.5807 GB, free: 5.035 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/0.307, allocations: 1.03 MB / 0.5817 GB, free: 4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2571/0.564, allocations: 6.278 MB / 0.5879 GB, free: 88.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.5641, allocations: 51.58 kB / 0.5879 GB, free: 88.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.97e-06/0.5641, allocations: 0 / 0.5879 GB, free: 88.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02465/0.5887, allocations: 8.348 MB / 0.5961 GB, free: 86.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.5888, allocations: 75.16 kB / 0.5961 GB, free: 86.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005428/0.5942, allocations: 3.085 MB / 0.5992 GB, free: 85.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002257/0.5944, allocations: 68.2 kB / 0.5992 GB, free: 84.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.5958, allocations: 2.517 MB / 0.6017 GB, free: 83.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007697/0.5966, allocations: 0.8834 MB / 0.6025 GB, free: 82.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/0.5979, allocations: 0.9876 MB / 0.6035 GB, free: 81.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.589e-05/0.598, allocations: 302.3 kB / 0.6038 GB, free: 81.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002412/0.6004, allocations: 1.638 MB / 0.6054 GB, free: 81.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003242/0.6036, allocations: 4.258 MB / 0.6096 GB, free: 77.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006308/0.61, allocations: 6.379 MB / 0.6158 GB, free: 70.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.419e-05/0.61, allocations: 28 kB / 0.6158 GB, free: 70.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01093/0.621, allocations: 6.476 MB / 0.6221 GB, free: 64.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.621, allocations: 44.94 kB / 0.6222 GB, free: 64.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.306e-05/0.6211, allocations: 92 kB / 0.6223 GB, free: 63.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/0.6229, allocations: 0.7327 MB / 0.623 GB, free: 63.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/0.626, allocations: 1.057 MB / 0.624 GB, free: 62.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.6373, allocations: 13.59 MB / 0.6373 GB, free: 47.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004682/0.6419, allocations: 259.8 kB / 0.6375 GB, free: 47.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007139/0.6427, allocations: 288 kB / 0.6378 GB, free: 47.35 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002706/0.6454, allocations: 1.798 MB / 0.6396 GB, free: 45.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006549/0.646, allocations: 298 kB / 0.6399 GB, free: 45.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004538/0.6506, allocations: 3.109 MB / 0.6429 GB, free: 42.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/0.6507, allocations: 39.97 kB / 0.6429 GB, free: 42.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.6507, allocations: 7.938 kB / 0.6429 GB, free: 42.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.6507, allocations: 7.969 kB / 0.6429 GB, free: 42.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/0.663, allocations: 8.201 MB / 0.651 GB, free: 33.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.663, allocations: 4 kB / 0.651 GB, free: 33.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.6641, allocations: 299.6 kB / 0.6512 GB, free: 33.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/0.6654, allocations: 0.5791 MB / 0.6518 GB, free: 32.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.6656, allocations: 45.72 kB / 0.6519 GB, free: 32.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008667/0.6742, allocations: 11.81 MB / 0.6634 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.6742, allocations: 11.98 kB / 0.6634 GB, free: 20.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005966/0.6802, allocations: 4.686 MB / 0.668 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000924/0.6811, allocations: 375.1 kB / 0.6683 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003629/0.6815, allocations: 36 kB / 0.6684 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.6825, allocations: 95.89 kB / 0.6685 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.6828, allocations: 153.7 kB / 0.6686 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.6829, allocations: 59.98 kB / 0.6687 GB, free: 14.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.6853, allocations: 1.969 MB / 0.6706 GB, free: 12.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6853, allocations: 0 / 0.6706 GB, free: 12.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004138/0.6894, allocations: 0.8906 MB / 0.6714 GB, free: 11.97 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,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005839/0.6953, allocations: 5.354 MB / 0.6767 GB, free: 6.531 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006418/0.7017, allocations: 4.591 MB / 0.6812 GB, free: 1.898 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.7017, allocations: 0 / 0.6812 GB, free: 1.898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.7039, allocations: 1.89 MB / 0.683 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.7066, allocations: 491.4 kB / 0.6835 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06579/0.7724, allocations: 35.43 MB / 0.7181 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003832/0.7762, allocations: 2.925 MB / 0.7209 GB, free: 5.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003432/0.7797, allocations: 1.385 MB / 0.7223 GB, free: 3.938 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/0.7822, allocations: 1.624 MB / 0.7239 GB, free: 2.312 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7822, allocations: 0 / 0.7239 GB, free: 2.312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1309/0.9132, allocations: 62.17 MB / 0.7846 GB, free: 4.395 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.56/21.47, allocations: 3.938 kB / 0.7846 GB, free: 4.391 MB / 0.545 GB " [Timeout remaining time 638] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.586441626015585] Failed to read output from testmodel.py, exit status != 0: 21.666600571013987 21.867898133 21.696898953 Calling exit ...