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.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.001282/0.001282, allocations: 106.1 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.001237/0.001237, allocations: 192.5 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.415/1.415, allocations: 225.6 MB / 247.8 MB, free: 13.92 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.0491/0.0491, allocations: 9.229 MB / 311.9 MB, free: 0.7539 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.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: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 79.88 kB / 434 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09592, allocations: 54.25 MB / 488.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01333/0.1092, allocations: 10.54 MB / 498.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006916/0.1162, allocations: 2.986 MB / 0.4901 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.1174, allocations: 47.88 kB / 0.4901 GB, free: 10.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1185, allocations: 460.7 kB / 0.4905 GB, free: 9.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00368/0.1222, allocations: 1.638 MB / 0.4921 GB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.1228, allocations: 219.6 kB / 0.4924 GB, free: 7.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.1266, allocations: 3.026 MB / 0.4953 GB, free: 4.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.128, allocations: 0.9988 MB / 0.4963 GB, free: 3.688 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.1296, allocations: 1.105 MB / 0.4974 GB, free: 2.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.1318, allocations: 1.673 MB / 0.499 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004793/0.1323, allocations: 276 kB / 0.4993 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.134, allocations: 0.9166 MB / 0.5002 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001388/0.1354, allocations: 1.433 MB / 0.5016 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001919/0.1373, allocations: 1.86 MB / 0.5034 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006825/0.1441, allocations: 5.746 MB / 0.509 GB, free: 6.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1441, allocations: 0 / 0.509 GB, free: 6.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1441, allocations: 0 / 0.509 GB, free: 6.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001367/0.1442, allocations: 0 / 0.509 GB, free: 6.633 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.01342/0.1577, allocations: 5.85 MB / 0.5147 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1577, allocations: 15.97 kB / 0.5147 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008665/0.1586, allocations: 0.6301 MB / 0.5153 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1945/0.3531, allocations: 1.856 MB / 0.5171 GB, free: 33.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003439/0.3565, allocations: 1.579 MB / 0.5187 GB, free: 33.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.3567, allocations: 186.3 kB / 0.5189 GB, free: 33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005109/0.3572, allocations: 248.1 kB / 0.5191 GB, free: 33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.3697, allocations: 9.312 MB / 0.5282 GB, free: 29.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.449e-05/0.3698, allocations: 28.83 kB / 0.5282 GB, free: 29.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/0.3701, allocations: 115.9 kB / 0.5283 GB, free: 28.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002934/0.373, allocations: 2.072 MB / 0.5303 GB, free: 28.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/0.3863, allocations: 8.252 MB / 0.5384 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02996/0.4162, allocations: 29.98 MB / 0.5677 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007514/0.4237, allocations: 2.924 MB / 0.5705 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.4255, allocations: 1.034 MB / 0.5716 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009422/0.4349, allocations: 6.303 MB / 0.5777 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.435, allocations: 43.88 kB / 0.5777 GB, free: 15.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 4.198e-06/0.435, allocations: 0 / 0.5777 GB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02246/0.4574, allocations: 8.339 MB / 0.5859 GB, free: 7.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.4575, allocations: 73.41 kB / 0.586 GB, free: 7.211 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004541/0.462, allocations: 3.085 MB / 0.589 GB, free: 4.105 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.4622, allocations: 57.7 kB / 0.589 GB, free: 4.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.4641, allocations: 2.525 MB / 0.5915 GB, free: 1.496 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007883/0.4649, allocations: 0.8796 MB / 0.5924 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.4662, allocations: 0.9913 MB / 0.5933 GB, free: 15.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4663, allocations: 305.1 kB / 0.5936 GB, free: 15.31 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/0.469, allocations: 1.636 MB / 0.5952 GB, free: 13.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004812/0.4738, allocations: 4.248 MB / 0.5994 GB, free: 8.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007988/0.4818, allocations: 6.385 MB / 0.6056 GB, free: 496 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.902e-05/0.4818, allocations: 32 kB / 0.6056 GB, free: 464 kB / 430.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01098/0.4928, allocations: 6.481 MB / 0.612 GB, free: 9.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.224e-05/0.4929, allocations: 44 kB / 0.612 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.493, allocations: 92.08 kB / 0.6121 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/0.4949, allocations: 0.7199 MB / 0.6128 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003151/0.498, allocations: 1.057 MB / 0.6138 GB, free: 8.027 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/0.5142, allocations: 13.61 MB / 0.6271 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003253/0.5174, allocations: 267.7 kB / 0.6274 GB, free: 9.453 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007089/0.5181, allocations: 288 kB / 0.6276 GB, free: 9.172 MB / 462.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.00313/0.5213, allocations: 1.79 MB / 0.6294 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004953/0.5218, allocations: 294 kB / 0.6297 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005395/0.5272, allocations: 3.116 MB / 0.6327 GB, free: 3.934 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/0.5273, allocations: 35.98 kB / 0.6327 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5273, allocations: 4 kB / 0.6327 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.5273, allocations: 7.969 kB / 0.6328 GB, free: 3.887 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.5432, allocations: 8.198 MB / 0.6408 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.5432, allocations: 4 kB / 0.6408 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.5443, allocations: 295.6 kB / 0.641 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.5458, allocations: 0.578 MB / 0.6416 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.5459, allocations: 40 kB / 0.6416 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.5589, allocations: 11.81 MB / 0.6532 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.5589, allocations: 7.938 kB / 0.6532 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007703/0.5666, allocations: 4.69 MB / 0.6578 GB, free: 9.297 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008708/0.5675, allocations: 367.1 kB / 0.6581 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005401/0.568, allocations: 55.97 kB / 0.6582 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.5692, allocations: 91.89 kB / 0.6583 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.5695, allocations: 145.7 kB / 0.6584 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/0.5697, allocations: 67.98 kB / 0.6585 GB, free: 8.562 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003632/0.5733, allocations: 1.969 MB / 0.6604 GB, free: 6.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5733, allocations: 0 / 0.6604 GB, free: 6.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003982/0.5773, allocations: 0.9139 MB / 0.6613 GB, free: 5.676 MB / 494.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.007914/0.5852, allocations: 5.354 MB / 0.6665 GB, free: 236 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007746/0.5929, allocations: 4.584 MB / 0.671 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5929, allocations: 0 / 0.671 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002722/0.5957, allocations: 1.888 MB / 0.6728 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.5981, allocations: 475.5 kB / 0.6733 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05595/0.654, allocations: 35.44 MB / 0.7079 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00462/0.6586, allocations: 2.929 MB / 0.7107 GB, free: 15 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003449/0.6621, allocations: 1.374 MB / 0.7121 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002428/0.6645, allocations: 1.628 MB / 0.7137 GB, free: 11.99 MB / 0.545 GB Notification: Performance of SimCode: time 9.01e-07/0.6645, allocations: 0 / 0.7137 GB, free: 11.99 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3056/0.9702, allocations: 62.2 MB / 0.7744 GB, free: 163.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.95/19.92, allocations: 15.98 kB / 0.7744 GB, free: 163.1 MB / 0.545 GB " [Timeout remaining time 640] (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: 22.469331400003284] Failed to read output from testmodel.py, exit status != 0: 20.061210710089654 20.06984207 19.923668179 Calling exit ...