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.0008081/0.0008081, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008674/0.0008674, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8796/0.8796, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.02799/0.02799, allocations: 7.113 MB / 266.3 MB, free: 6.312 MB / 250.7 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: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.321e-05, allocations: 2.281 kB / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.008427/0.00845, allocations: 9.164 MB / 401.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005781/0.01423, allocations: 2.877 MB / 404.4 MB, free: 7.887 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.01532, allocations: 51.81 kB / 404.5 MB, free: 7.836 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008658/0.01618, allocations: 468.6 kB / 404.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00271/0.01889, allocations: 1.695 MB / 406.6 MB, free: 5.672 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003582/0.01925, allocations: 211.6 kB / 406.8 MB, free: 5.465 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002563/0.02181, allocations: 3.069 MB / 409.9 MB, free: 2.387 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.02289, allocations: 0.9872 MB / 410.9 MB, free: 1.379 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1407/0.1636, allocations: 1.676 MB / 412.6 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.1655, allocations: 1.508 MB / 414.1 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005378/0.166, allocations: 276.6 kB / 414.3 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.1673, allocations: 0.8743 MB / 415.2 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009236/0.1682, allocations: 1.456 MB / 416.7 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008553/0.169, allocations: 0.9984 MB / 417.7 MB, free: 16.28 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005315/0.1744, allocations: 5.67 MB / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1744, allocations: 0 / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1744, allocations: 0 / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001312/0.1745, allocations: 1.031 kB / 423.3 MB, free: 15.53 MB / 330.7 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.009599/0.1841, allocations: 5.802 MB / 429.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1841, allocations: 10.16 kB / 429.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005308/0.1847, allocations: 0.6293 MB / 429.8 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003694/0.1884, allocations: 1.956 MB / 431.7 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001996/0.1904, allocations: 1.506 MB / 433.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.231e-05/0.1905, allocations: 184.8 kB / 433.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003166/0.1908, allocations: 244 kB / 433.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007467/0.1982, allocations: 9.299 MB / 443 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.203e-05/0.1983, allocations: 32.98 kB / 443 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/0.1985, allocations: 118.5 kB / 443.1 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001471/0.2, allocations: 2.072 MB / 445.2 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009166/0.2092, allocations: 8.18 MB / 453.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02436/0.2335, allocations: 28.46 MB / 481.8 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004376/0.2379, allocations: 2.59 MB / 484.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.239, allocations: 1.032 MB / 485.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004415/0.2434, allocations: 3.468 MB / 488.9 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.2434, allocations: 47.88 kB / 489 MB, free: 7.004 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 3.476e-06/0.2434, allocations: 0 / 489 MB, free: 7.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01354/0.257, allocations: 8.358 MB / 497.3 MB, free: 14.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.257, allocations: 76.88 kB / 497.4 MB, free: 14.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003146/0.2601, allocations: 3.213 MB / 0.4889 GB, free: 11.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.2602, allocations: 57.7 kB / 0.4889 GB, free: 11.31 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.2615, allocations: 2.51 MB / 0.4914 GB, free: 8.809 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.262, allocations: 0.8633 MB / 0.4922 GB, free: 7.957 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008208/0.2628, allocations: 0.9769 MB / 0.4932 GB, free: 6.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.2628, allocations: 309.1 kB / 0.4935 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.2644, allocations: 1.622 MB / 0.4951 GB, free: 5.039 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/0.2672, allocations: 4.247 MB / 0.4992 GB, free: 15.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004682/0.2719, allocations: 6.372 MB / 0.5054 GB, free: 7.973 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.218e-05/0.2719, allocations: 28 kB / 0.5055 GB, free: 7.945 MB / 410.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.006622/0.2786, allocations: 6.457 MB / 0.5118 GB, free: 1.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.2786, allocations: 44.19 kB / 0.5118 GB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.606e-05/0.2787, allocations: 99.94 kB / 0.5119 GB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009975/0.2797, allocations: 0.6962 MB / 0.5126 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.2813, allocations: 1.057 MB / 0.5136 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008999/0.2903, allocations: 12.97 MB / 0.5263 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/0.2927, allocations: 261.8 kB / 0.5265 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/0.2931, allocations: 288 kB / 0.5268 GB, free: 1.504 MB / 426.7 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.002954/0.2961, allocations: 1.8 MB / 0.5286 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/0.2965, allocations: 298 kB / 0.5289 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.2999, allocations: 3.089 MB / 0.5319 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.504e-05/0.3, allocations: 31.98 kB / 0.5319 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3, allocations: 12 kB / 0.5319 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3, allocations: 11.95 kB / 0.5319 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008628/0.3087, allocations: 7.815 MB / 0.5396 GB, free: 4.289 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3087, allocations: 4 kB / 0.5396 GB, free: 4.285 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005955/0.3093, allocations: 300 kB / 0.5398 GB, free: 3.992 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007453/0.31, allocations: 0.5302 MB / 0.5404 GB, free: 3.449 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.397e-05/0.3101, allocations: 40 kB / 0.5404 GB, free: 3.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006993/0.3171, allocations: 11.16 MB / 0.5513 GB, free: 7.699 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3171, allocations: 11.88 kB / 0.5513 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004603/0.3217, allocations: 4.652 MB / 0.5559 GB, free: 2.957 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005408/0.3222, allocations: 290.1 kB / 0.5561 GB, free: 2.672 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.3224, allocations: 40 kB / 0.5562 GB, free: 2.633 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005509/0.323, allocations: 101.3 kB / 0.5563 GB, free: 2.535 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.3232, allocations: 153.7 kB / 0.5564 GB, free: 2.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.3233, allocations: 66.17 kB / 0.5565 GB, free: 2.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002103/0.3254, allocations: 1.949 MB / 0.5584 GB, free: 376 kB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3254, allocations: 0 / 0.5584 GB, free: 376 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.002894/0.3283, allocations: 0.8944 MB / 0.5592 GB, free: 15.47 MB / 474.7 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.004777/0.333, allocations: 5.329 MB / 0.5645 GB, free: 10.06 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005277/0.3383, allocations: 4.563 MB / 0.5689 GB, free: 5.457 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3383, allocations: 0 / 0.5689 GB, free: 5.457 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.34, allocations: 1.884 MB / 0.5707 GB, free: 3.512 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.3416, allocations: 471.6 kB / 0.5712 GB, free: 3.062 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.183/0.5246, allocations: 35.21 MB / 0.6056 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.5264, allocations: 2.374 MB / 0.6079 GB, free: 137.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001797/0.5282, allocations: 1.376 MB / 0.6092 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.5293, allocations: 1.632 MB / 0.6108 GB, free: 134.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5293, allocations: 0 / 0.6108 GB, free: 134.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07028/0.5996, allocations: 62.51 MB / 0.6719 GB, free: 72.81 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.22, allocations: 3.938 kB / 0.6719 GB, free: 72.8 MB / 474.7 MB " [Timeout remaining time 649] (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: 12.945101849734783] Failed to read output from testmodel.py, exit status != 0: 11.336520995013416 11.343259218 11.167238594 Calling exit ...