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.001307/0.001307, allocations: 110.4 kB / 18.94 MB, free: 2.957 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.001515/0.001515, allocations: 215.8 kB / 22.25 MB, free: 5.133 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 7.984 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.05376/0.05376, allocations: 9.24 MB / 321.7 MB, free: 10.04 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",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.002149/0.002149, allocations: 59.91 kB / 447.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1168, allocations: 55.47 MB / 0.4914 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01364/0.1304, allocations: 10.56 MB / 0.5017 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008555/0.139, allocations: 3.033 MB / 0.5047 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002069/0.141, allocations: 51.81 kB / 0.5047 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.1429, allocations: 464.8 kB / 0.5052 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005134/0.148, allocations: 1.638 MB / 0.5068 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007704/0.1488, allocations: 215.7 kB / 0.507 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004654/0.1534, allocations: 3.007 MB / 0.5099 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001787/0.1552, allocations: 0.9797 MB / 0.5109 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.1574, allocations: 1.121 MB / 0.512 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003132/0.1605, allocations: 1.67 MB / 0.5136 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000961/0.1615, allocations: 276 kB / 0.5139 GB, free: 392 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2351/0.3966, allocations: 0.9277 MB / 0.5148 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001708/0.3983, allocations: 1.412 MB / 0.5161 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001964/0.4003, allocations: 1.844 MB / 0.5179 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006914/0.4072, allocations: 5.706 MB / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4072, allocations: 6.25 kB / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4072, allocations: 0 / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001473/0.4073, allocations: 1.812 kB / 0.5235 GB, free: 8.418 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.0154/0.4227, allocations: 5.799 MB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.4228, allocations: 9.375 kB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001038/0.4238, allocations: 0.6272 MB / 0.5298 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007042/0.4309, allocations: 1.863 MB / 0.5316 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004194/0.435, allocations: 1.514 MB / 0.5331 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.4354, allocations: 192.5 kB / 0.5333 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005579/0.4359, allocations: 251.6 kB / 0.5335 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01537/0.4513, allocations: 9.302 MB / 0.5426 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.767e-05/0.4514, allocations: 30.95 kB / 0.5426 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006241/0.452, allocations: 117.6 kB / 0.5428 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.4549, allocations: 2.078 MB / 0.5448 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.4707, allocations: 8.245 MB / 0.5528 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.052/0.5227, allocations: 29.97 MB / 0.5821 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008957/0.5317, allocations: 2.456 MB / 0.5845 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002204/0.5339, allocations: 1.042 MB / 0.5855 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.5441, allocations: 3.742 MB / 0.5892 GB, free: 7.668 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.045e-05/0.5442, allocations: 52.81 kB / 0.5892 GB, free: 7.605 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.24e-06/0.5442, allocations: 0 / 0.5892 GB, free: 7.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02575/0.5699, allocations: 8.109 MB / 0.5971 GB, free: 15.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.57, allocations: 73.41 kB / 0.5972 GB, free: 15.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006682/0.5767, allocations: 3.089 MB / 0.6002 GB, free: 12.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.5768, allocations: 58.73 kB / 0.6003 GB, free: 12.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/0.5791, allocations: 2.522 MB / 0.6028 GB, free: 9.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009223/0.58, allocations: 0.8819 MB / 0.6036 GB, free: 8.898 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002038/0.582, allocations: 0.9892 MB / 0.6046 GB, free: 7.902 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5822, allocations: 309.1 kB / 0.6049 GB, free: 7.598 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003268/0.5855, allocations: 1.634 MB / 0.6065 GB, free: 5.957 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005816/0.5913, allocations: 4.254 MB / 0.6106 GB, free: 476 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009225/0.6005, allocations: 6.393 MB / 0.6169 GB, free: 9.176 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/0.6006, allocations: 30.72 kB / 0.6169 GB, free: 9.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01308/0.6137, allocations: 6.469 MB / 0.6232 GB, free: 2.863 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.6138, allocations: 44 kB / 0.6233 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003307/0.6141, allocations: 88 kB / 0.6233 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002606/0.6167, allocations: 0.7319 MB / 0.6241 GB, free: 1.992 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/0.6206, allocations: 1.053 MB / 0.6251 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/0.6386, allocations: 13.09 MB / 0.6379 GB, free: 3.285 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004176/0.6428, allocations: 259.9 kB / 0.6381 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.6438, allocations: 291.2 kB / 0.6384 GB, free: 2.75 MB / 478.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.004739/0.6485, allocations: 1.787 MB / 0.6401 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008251/0.6494, allocations: 298 kB / 0.6404 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006275/0.6556, allocations: 3.114 MB / 0.6435 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/0.6558, allocations: 43.12 kB / 0.6435 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.077e-05/0.6558, allocations: 4 kB / 0.6435 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.6558, allocations: 7.969 kB / 0.6435 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/0.6738, allocations: 8.154 MB / 0.6515 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.6738, allocations: 4 kB / 0.6515 GB, free: 5.199 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.675, allocations: 295.6 kB / 0.6518 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/0.6768, allocations: 0.5733 MB / 0.6523 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/0.6769, allocations: 47.92 kB / 0.6524 GB, free: 4.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/0.691, allocations: 11.29 MB / 0.6634 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.984e-06/0.691, allocations: 4 kB / 0.6634 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009063/0.7, allocations: 4.688 MB / 0.668 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.7011, allocations: 298 kB / 0.6683 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007684/0.7018, allocations: 39.98 kB / 0.6683 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.7035, allocations: 95.89 kB / 0.6684 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003623/0.7039, allocations: 157.5 kB / 0.6685 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.704, allocations: 72.81 kB / 0.6686 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004447/0.7085, allocations: 1.969 MB / 0.6705 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.133e-06/0.7085, allocations: 0 / 0.6705 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004776/0.7132, allocations: 0.8905 MB / 0.6714 GB, free: 156 kB / 0.4981 GB 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.008636/0.7219, allocations: 5.353 MB / 0.6766 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008796/0.7307, allocations: 4.581 MB / 0.6811 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.7307, allocations: 0 / 0.6811 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003069/0.7338, allocations: 1.897 MB / 0.683 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.7366, allocations: 486.9 kB / 0.6834 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06566/0.8022, allocations: 35.51 MB / 0.7181 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005102/0.8073, allocations: 2.929 MB / 0.721 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003619/0.811, allocations: 1.381 MB / 0.7223 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002807/0.8138, allocations: 1.62 MB / 0.7239 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of SimCode: time 1.343e-06/0.8138, allocations: 0 / 0.7239 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3866/1.2, allocations: 66.29 MB / 0.7886 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.68/22.88, allocations: 10.78 kB / 0.7886 GB, free: 163.1 MB / 0.5606 GB " [Timeout remaining time 637] (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: 25.638715251116082] Failed to read output from testmodel.py, exit status != 0: 23.033531988970935 23.043800601 22.633954867 Calling exit ...