Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.001233/0.001233, allocations: 105.5 kB / 19.73 MB, free: 2.223 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.001338/0.001338, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.516/1.516, allocations: 230.6 MB / 256.8 MB, free: 7.973 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.04952/0.04952, allocations: 9.245 MB / 322.5 MB, free: 10.02 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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.002706/0.002706, allocations: 64.09 kB / 448.5 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1338, allocations: 55.46 MB / 0.4922 GB, free: 7.449 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01447/0.1482, allocations: 10.76 MB / 0.5027 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007625/0.1559, allocations: 3.019 MB / 0.5056 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.1578, allocations: 47.88 kB / 0.5057 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.1591, allocations: 464.8 kB / 0.5061 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004778/0.1639, allocations: 1.712 MB / 0.5078 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007727/0.1647, allocations: 175.8 kB / 0.508 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0053/0.17, allocations: 3.089 MB / 0.511 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001956/0.1719, allocations: 0.9543 MB / 0.5119 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002174/0.1741, allocations: 1.144 MB / 0.513 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002993/0.1771, allocations: 1.767 MB / 0.5148 GB, free: 228 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2758/0.4529, allocations: 289.9 kB / 0.515 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.4559, allocations: 0.9264 MB / 0.5159 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002383/0.4583, allocations: 1.526 MB / 0.5174 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003111/0.4614, allocations: 1.934 MB / 0.5193 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.4731, allocations: 6.073 MB / 0.5253 GB, free: 8.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.4731, allocations: 0.8125 kB / 0.5253 GB, free: 8.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4731, allocations: 0 / 0.5253 GB, free: 8.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003804/0.4735, allocations: 1.438 kB / 0.5253 GB, free: 8.223 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.02377/0.4973, allocations: 4.627 MB / 0.5298 GB, free: 6.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.034e-05/0.4973, allocations: 10.03 kB / 0.5298 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003593/0.4977, allocations: 94.91 kB / 0.5299 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003097/0.5008, allocations: 0.6737 MB / 0.5305 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009447/0.5102, allocations: 1.928 MB / 0.5324 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00595/0.5162, allocations: 1.541 MB / 0.5339 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004334/0.5166, allocations: 192.4 kB / 0.5341 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.5187, allocations: 255.8 kB / 0.5343 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02395/0.5426, allocations: 9.786 MB / 0.5439 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002388/0.5429, allocations: 36.16 kB / 0.5439 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001646/0.5445, allocations: 116.6 kB / 0.544 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004441/0.549, allocations: 2.3 MB / 0.5463 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02255/0.5715, allocations: 8.48 MB / 0.5546 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06251/0.634, allocations: 30.55 MB / 0.5844 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007914/0.6419, allocations: 2.247 MB / 0.5866 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002398/0.6443, allocations: 0.9763 MB / 0.5876 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/0.6559, allocations: 3.966 MB / 0.5914 GB, free: 6.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/0.656, allocations: 45.7 kB / 0.5915 GB, free: 6.105 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 6.472e-06/0.656, allocations: 0 / 0.5915 GB, free: 6.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02144/0.6775, allocations: 8.188 MB / 0.5995 GB, free: 13.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.6775, allocations: 64.72 kB / 0.5995 GB, free: 13.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007827/0.6853, allocations: 3.211 MB / 0.6027 GB, free: 10.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000396/0.6857, allocations: 49.7 kB / 0.6027 GB, free: 10.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002767/0.6885, allocations: 2.707 MB / 0.6054 GB, free: 7.871 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.6898, allocations: 0.7038 MB / 0.606 GB, free: 7.176 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002839/0.6926, allocations: 0.9887 MB / 0.607 GB, free: 6.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.6928, allocations: 313 kB / 0.6073 GB, free: 5.871 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003438/0.6962, allocations: 1.571 MB / 0.6088 GB, free: 4.297 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006125/0.7023, allocations: 4.354 MB / 0.6131 GB, free: 14.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009435/0.7118, allocations: 6.375 MB / 0.6193 GB, free: 7.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/0.7119, allocations: 28 kB / 0.6194 GB, free: 7.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01373/0.7256, allocations: 6.034 MB / 0.6252 GB, free: 1.293 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.7257, allocations: 48 kB / 0.6253 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.7259, allocations: 96.66 kB / 0.6254 GB, free: 1.152 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.7269, allocations: 381 kB / 0.6257 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004303/0.7312, allocations: 1.096 MB / 0.6268 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005641/0.7369, allocations: 3.606 MB / 0.6303 GB, free: 11.97 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004767/0.7417, allocations: 244 kB / 0.6306 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/0.7432, allocations: 292 kB / 0.6308 GB, free: 11.45 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005476/0.7487, allocations: 1.885 MB / 0.6327 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007587/0.7494, allocations: 288.4 kB / 0.633 GB, free: 9.273 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005493/0.7549, allocations: 2.413 MB / 0.6353 GB, free: 6.844 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002121/0.7551, allocations: 59.89 kB / 0.6354 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.7552, allocations: 0 / 0.6354 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/0.7552, allocations: 7.969 kB / 0.6354 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/0.7695, allocations: 6.809 MB / 0.642 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.7696, allocations: 4 kB / 0.642 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.7706, allocations: 259.6 kB / 0.6423 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006897/0.7713, allocations: 252.6 kB / 0.6425 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.7714, allocations: 32 kB / 0.6426 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.7751, allocations: 2.859 MB / 0.6453 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.7751, allocations: 8 kB / 0.6454 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006527/0.7816, allocations: 3.733 MB / 0.649 GB, free: 8.578 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/0.783, allocations: 290.1 kB / 0.6493 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005494/0.7836, allocations: 34.73 kB / 0.6493 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.7847, allocations: 83.84 kB / 0.6494 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.7849, allocations: 105 kB / 0.6495 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.785, allocations: 59.98 kB / 0.6495 GB, free: 8.016 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003678/0.7887, allocations: 2.037 MB / 0.6515 GB, free: 5.977 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7887, allocations: 0 / 0.6515 GB, free: 5.977 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004214/0.7929, allocations: 0.8235 MB / 0.6523 GB, free: 5.156 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007018/0.8, allocations: 4.394 MB / 0.6566 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007389/0.8073, allocations: 3.726 MB / 0.6603 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.8074, allocations: 1.625 kB / 0.6603 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.8094, allocations: 1.147 MB / 0.6614 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.8119, allocations: 465.4 kB / 0.6618 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06273/0.8747, allocations: 34.56 MB / 0.6956 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004656/0.8793, allocations: 3.007 MB / 0.6985 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00385/0.8832, allocations: 1.432 MB / 0.6999 GB, free: 404 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003079/0.8863, allocations: 1.699 MB / 0.7016 GB, free: 14.73 MB / 0.545 GB Notification: Performance of SimCode: time 1.763e-06/0.8863, allocations: 0 / 0.7016 GB, free: 14.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3493/1.236, allocations: 58.69 MB / 0.7589 GB, free: 164.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.09/24.33, allocations: 8.047 kB / 0.7589 GB, free: 164.1 MB / 0.545 GB " [Timeout remaining time 635] (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.19762771599926] Failed to read output from testmodel.py, exit status != 0: 24.53557223000098 24.545739626 24.069948129 Calling exit ...