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.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.00129/0.00129, allocations: 106.9 kB / 16.45 MB, free: 6.035 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.001308/0.001308, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.356/1.356, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.04824/0.04824, allocations: 9.237 MB / 311.9 MB, free: 0.7383 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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.91 kB / 434 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.109, allocations: 54.26 MB / 488.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01124/0.1203, allocations: 8.559 MB / 496.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006318/0.1266, allocations: 2.605 MB / 499.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.1279, allocations: 39.88 kB / 499.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.129, allocations: 385.5 kB / 499.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003564/0.1325, allocations: 1.416 MB / 0.4895 GB, free: 10.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.1329, allocations: 155.7 kB / 0.4897 GB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00329/0.1362, allocations: 2.53 MB / 0.4922 GB, free: 7.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1375, allocations: 0.8543 MB / 0.493 GB, free: 7.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.1388, allocations: 0.9222 MB / 0.4939 GB, free: 6.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.1406, allocations: 1.444 MB / 0.4953 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004034/0.141, allocations: 240 kB / 0.4955 GB, free: 4.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.1426, allocations: 0.8698 MB / 0.4964 GB, free: 3.582 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.1438, allocations: 1.246 MB / 0.4976 GB, free: 2.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001744/0.1456, allocations: 1.596 MB / 0.4992 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006143/0.1517, allocations: 5.085 MB / 0.5041 GB, free: 11.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.1517, allocations: 7.984 kB / 0.5041 GB, free: 11.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1517, allocations: 0 / 0.5041 GB, free: 11.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.905e-05/0.1518, allocations: 0 / 0.5041 GB, free: 11.61 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.009254/0.1611, allocations: 4.363 MB / 0.5084 GB, free: 7.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1611, allocations: 8.031 kB / 0.5084 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007271/0.1618, allocations: 0.5511 MB / 0.5089 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006367/0.1682, allocations: 1.793 MB / 0.5107 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.1714, allocations: 1.348 MB / 0.512 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.1715, allocations: 152 kB / 0.5122 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004427/0.172, allocations: 199.9 kB / 0.5123 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2055/0.3775, allocations: 8.19 MB / 0.5203 GB, free: 31.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.884e-05/0.3775, allocations: 15.36 kB / 0.5204 GB, free: 31.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002794/0.3778, allocations: 93.48 kB / 0.5204 GB, free: 31.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003011/0.3808, allocations: 1.921 MB / 0.5223 GB, free: 30.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.398, allocations: 7.431 MB / 0.5296 GB, free: 28.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0319/0.4299, allocations: 24.85 MB / 0.5538 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00415/0.4341, allocations: 2.333 MB / 0.5561 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009644/0.435, allocations: 0.8091 MB / 0.5569 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005148/0.4402, allocations: 4.44 MB / 0.5613 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.4402, allocations: 48.41 kB / 0.5613 GB, free: 1.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.876e-06/0.4402, allocations: 0 / 0.5613 GB, free: 1.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.009787/0.45, allocations: 4.694 MB / 0.5659 GB, free: 12.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.4501, allocations: 64.41 kB / 0.5659 GB, free: 12.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003434/0.4535, allocations: 2.496 MB / 0.5684 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/0.4536, allocations: 45.7 kB / 0.5684 GB, free: 10.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001588/0.4552, allocations: 2.152 MB / 0.5705 GB, free: 7.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005029/0.4557, allocations: 0.562 MB / 0.5711 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001005/0.4567, allocations: 0.7545 MB / 0.5718 GB, free: 6.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4568, allocations: 302.2 kB / 0.5721 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002062/0.4589, allocations: 1.237 MB / 0.5733 GB, free: 5.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003791/0.4627, allocations: 3.298 MB / 0.5765 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.4689, allocations: 4.897 MB / 0.5813 GB, free: 10.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-05/0.4689, allocations: 20 kB / 0.5813 GB, free: 10.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.007869/0.4768, allocations: 4.637 MB / 0.5859 GB, free: 6.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.4768, allocations: 40.06 kB / 0.5859 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.214e-05/0.4769, allocations: 72 kB / 0.586 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005729/0.4775, allocations: 235.1 kB / 0.5862 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.48, allocations: 0.8227 MB / 0.587 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.4834, allocations: 2.847 MB / 0.5898 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002392/0.4858, allocations: 191.9 kB / 0.59 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003381/0.4861, allocations: 224 kB / 0.5902 GB, free: 1.598 MB / 414.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.002394/0.4885, allocations: 1.576 MB / 0.5917 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/0.4889, allocations: 222.7 kB / 0.5919 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.4923, allocations: 1.936 MB / 0.5938 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/0.4924, allocations: 35.84 kB / 0.5938 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4924, allocations: 4 kB / 0.5938 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4924, allocations: 3.984 kB / 0.5939 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.5026, allocations: 5.806 MB / 0.5995 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.5027, allocations: 4 kB / 0.5995 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008523/0.5035, allocations: 219.6 kB / 0.5997 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.5039, allocations: 137.2 kB / 0.5999 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.797e-05/0.504, allocations: 31.92 kB / 0.5999 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.5067, allocations: 2.518 MB / 0.6024 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.5067, allocations: 7.938 kB / 0.6024 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004576/0.5113, allocations: 3.065 MB / 0.6054 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007492/0.512, allocations: 299.5 kB / 0.6056 GB, free: 1.367 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.5123, allocations: 28 kB / 0.6057 GB, free: 1.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/0.513, allocations: 68.41 kB / 0.6057 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.5132, allocations: 92.83 kB / 0.6058 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.066e-05/0.5133, allocations: 47.97 kB / 0.6059 GB, free: 1.137 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002415/0.5158, allocations: 1.603 MB / 0.6074 GB, free: 15.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5158, allocations: 0 / 0.6074 GB, free: 15.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00268/0.5184, allocations: 0.6561 MB / 0.6081 GB, free: 14.86 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.00522/0.5237, allocations: 3.707 MB / 0.6117 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.5287, allocations: 2.929 MB / 0.6146 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.5287, allocations: 0 / 0.6146 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.5302, allocations: 0.9502 MB / 0.6155 GB, free: 7.188 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.5321, allocations: 420.2 kB / 0.6159 GB, free: 6.793 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03944/0.5715, allocations: 26.74 MB / 0.642 GB, free: 9.273 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002948/0.5745, allocations: 2.598 MB / 0.6445 GB, free: 6.645 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002571/0.577, allocations: 1.121 MB / 0.6456 GB, free: 5.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/0.5787, allocations: 1.308 MB / 0.6469 GB, free: 4.211 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5787, allocations: 0 / 0.6469 GB, free: 4.211 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09104/0.6698, allocations: 45.24 MB / 0.6911 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/16.03, allocations: 11.88 kB / 0.6911 GB, free: 7.16 MB / 0.5137 GB " [Timeout remaining time 644] (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: 18.56426434405148] Failed to read output from testmodel.py, exit status != 0: 16.140407181344926 16.163825264 16.007822594 Calling exit ...