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.001741/0.001741, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002195/0.002195, allocations: 216.1 kB / 23.04 MB, free: 5.07 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.539/1.539, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.05011/0.05011, allocations: 9.237 MB / 322.5 MB, free: 10.08 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.003061/0.003061, allocations: 59.91 kB / 448.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1403, allocations: 55.47 MB / 0.4922 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01258/0.1528, allocations: 10.56 MB / 0.5025 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.1598, allocations: 3.021 MB / 0.5054 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.1623, allocations: 51.81 kB / 0.5055 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.1638, allocations: 468.8 kB / 0.5059 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004943/0.1688, allocations: 1.641 MB / 0.5075 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000685/0.1695, allocations: 215.6 kB / 0.5078 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00431/0.1738, allocations: 2.997 MB / 0.5107 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.1754, allocations: 0.9797 MB / 0.5116 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.1772, allocations: 1.125 MB / 0.5127 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002669/0.1799, allocations: 1.673 MB / 0.5144 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006539/0.1805, allocations: 276 kB / 0.5146 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2549/0.4355, allocations: 0.9267 MB / 0.5155 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001979/0.4375, allocations: 1.419 MB / 0.5169 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002309/0.4398, allocations: 1.838 MB / 0.5187 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008144/0.4479, allocations: 5.712 MB / 0.5243 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.4479, allocations: 0.9688 kB / 0.5243 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4479, allocations: 0 / 0.5243 GB, free: 8.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002279/0.4481, allocations: 0.5312 kB / 0.5243 GB, free: 8.402 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.0179/0.466, allocations: 5.799 MB / 0.53 GB, free: 6.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.4661, allocations: 9.469 kB / 0.53 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002034/0.4663, allocations: 91.36 kB / 0.5301 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001173/0.4675, allocations: 0.628 MB / 0.5307 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007534/0.475, allocations: 1.86 MB / 0.5325 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00509/0.4801, allocations: 1.518 MB / 0.534 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/0.4804, allocations: 189.5 kB / 0.5341 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/0.4818, allocations: 245 kB / 0.5344 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01764/0.4995, allocations: 9.307 MB / 0.5435 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4996, allocations: 32.45 kB / 0.5435 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004182/0.5, allocations: 117.5 kB / 0.5436 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003291/0.5033, allocations: 2.075 MB / 0.5456 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02045/0.5237, allocations: 8.246 MB / 0.5537 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05163/0.5754, allocations: 29.96 MB / 0.583 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008877/0.5842, allocations: 2.464 MB / 0.5854 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002488/0.5867, allocations: 1.038 MB / 0.5864 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009779/0.5965, allocations: 3.739 MB / 0.59 GB, free: 7.621 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.5965, allocations: 51.86 kB / 0.5901 GB, free: 7.559 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.059e-06/0.5966, allocations: 4 kB / 0.5901 GB, free: 7.555 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02741/0.624, allocations: 8.106 MB / 0.598 GB, free: 15.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.624, allocations: 73.41 kB / 0.5981 GB, free: 15.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006478/0.6305, allocations: 3.089 MB / 0.6011 GB, free: 12.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003677/0.6309, allocations: 63.73 kB / 0.6011 GB, free: 12.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002445/0.6333, allocations: 2.519 MB / 0.6036 GB, free: 9.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/0.6346, allocations: 0.8897 MB / 0.6045 GB, free: 8.844 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002508/0.6371, allocations: 0.9839 MB / 0.6054 GB, free: 7.852 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.6372, allocations: 305.1 kB / 0.6057 GB, free: 7.551 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003294/0.6405, allocations: 1.639 MB / 0.6073 GB, free: 5.906 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005734/0.6463, allocations: 4.254 MB / 0.6115 GB, free: 424 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009068/0.6553, allocations: 6.386 MB / 0.6177 GB, free: 9.129 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.39e-05/0.6554, allocations: 28 kB / 0.6177 GB, free: 9.102 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.014/0.6694, allocations: 6.474 MB / 0.6241 GB, free: 2.805 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.6695, allocations: 44 kB / 0.6241 GB, free: 2.762 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.6697, allocations: 92.2 kB / 0.6242 GB, free: 2.672 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002119/0.6718, allocations: 0.727 MB / 0.6249 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/0.676, allocations: 1.049 MB / 0.6259 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/0.6938, allocations: 13.1 MB / 0.6387 GB, free: 3.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004677/0.6985, allocations: 263.8 kB / 0.639 GB, free: 2.973 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/0.6997, allocations: 291.1 kB / 0.6392 GB, free: 2.691 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.004525/0.7043, allocations: 1.792 MB / 0.641 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009186/0.7052, allocations: 294 kB / 0.6413 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006817/0.712, allocations: 3.112 MB / 0.6443 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001293/0.7121, allocations: 42.94 kB / 0.6444 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.256e-05/0.7121, allocations: 8 kB / 0.6444 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.322e-05/0.7122, allocations: 7.969 kB / 0.6444 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/0.7298, allocations: 8.136 MB / 0.6523 GB, free: 5.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.7299, allocations: 4 kB / 0.6523 GB, free: 5.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.731, allocations: 300 kB / 0.6526 GB, free: 4.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001627/0.7327, allocations: 0.58 MB / 0.6532 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.7328, allocations: 40 kB / 0.6532 GB, free: 4.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.013/0.7458, allocations: 11.31 MB / 0.6643 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.7458, allocations: 7.938 kB / 0.6643 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008404/0.7542, allocations: 4.677 MB / 0.6688 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009611/0.7552, allocations: 294 kB / 0.6691 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007464/0.7559, allocations: 43.94 kB / 0.6692 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.7574, allocations: 103.8 kB / 0.6693 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.7578, allocations: 157 kB / 0.6694 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/0.758, allocations: 63.98 kB / 0.6695 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003967/0.7619, allocations: 1.972 MB / 0.6714 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7619, allocations: 4 kB / 0.6714 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005746/0.7677, allocations: 0.8905 MB / 0.6723 GB, free: 92 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.008982/0.7767, allocations: 5.346 MB / 0.6775 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008396/0.785, allocations: 4.582 MB / 0.682 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.7851, allocations: 0 / 0.682 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003048/0.7881, allocations: 1.903 MB / 0.6838 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/0.7912, allocations: 478.1 kB / 0.6843 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07034/0.8615, allocations: 35.51 MB / 0.719 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003685/0.8652, allocations: 2.929 MB / 0.7218 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003597/0.8688, allocations: 1.378 MB / 0.7232 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002976/0.8718, allocations: 1.632 MB / 0.7247 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of SimCode: time 8.62e-07/0.8718, allocations: 0 / 0.7247 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3345/1.206, allocations: 66.31 MB / 0.7895 GB, free: 163 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.75/22.96, allocations: 16.89 kB / 0.7895 GB, free: 163 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.87939937703777] Failed to read output from testmodel.py, exit status != 0: 23.186914238962345 23.20811517 22.755785515 Calling exit ...