Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.001788/0.001788, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002126/0.002126, allocations: 217.3 kB / 22.25 MB, free: 5.121 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.508/1.508, 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.05035/0.05035, allocations: 9.233 MB / 321.7 MB, free: 10.05 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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.002176/0.002176, allocations: 67.89 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1166, allocations: 55.46 MB / 0.4914 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01377/0.1303, allocations: 10.55 MB / 0.5017 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008612/0.139, allocations: 3.025 MB / 0.5047 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002098/0.1411, allocations: 47.81 kB / 0.5047 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.143, allocations: 476.7 kB / 0.5052 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005726/0.1487, allocations: 1.63 MB / 0.5068 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.1499, allocations: 219.6 kB / 0.507 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005609/0.1555, allocations: 3.012 MB / 0.5099 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002139/0.1576, allocations: 0.9797 MB / 0.5109 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002536/0.1602, allocations: 1.121 MB / 0.512 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003148/0.1633, allocations: 1.677 MB / 0.5136 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009396/0.1643, allocations: 276 kB / 0.5139 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2429/0.4072, allocations: 0.9259 MB / 0.5148 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001721/0.4089, allocations: 1.415 MB / 0.5162 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002968/0.4119, allocations: 1.843 MB / 0.518 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009482/0.4214, allocations: 5.706 MB / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.4214, allocations: 0.7031 kB / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4214, allocations: 0 / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002571/0.4217, allocations: 0 / 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.01916/0.4408, allocations: 5.801 MB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4409, allocations: 12.81 kB / 0.5292 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002224/0.4431, allocations: 0.6296 MB / 0.5298 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007868/0.451, allocations: 1.863 MB / 0.5316 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005005/0.456, allocations: 1.512 MB / 0.5331 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004815/0.4564, allocations: 189.4 kB / 0.5333 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/0.4582, allocations: 250.1 kB / 0.5335 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02335/0.4816, allocations: 9.308 MB / 0.5426 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/0.4817, allocations: 32.42 kB / 0.5427 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001071/0.4828, allocations: 114.5 kB / 0.5428 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00399/0.4868, allocations: 2.074 MB / 0.5448 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/0.5056, allocations: 8.236 MB / 0.5528 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05084/0.5565, allocations: 29.96 MB / 0.5821 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008257/0.5647, allocations: 2.463 MB / 0.5845 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002251/0.567, allocations: 1.032 MB / 0.5855 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009852/0.5769, allocations: 3.748 MB / 0.5892 GB, free: 7.695 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.153e-05/0.5769, allocations: 55.88 kB / 0.5892 GB, free: 7.629 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.621e-06/0.5769, allocations: 0 / 0.5892 GB, free: 7.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03585/0.6128, allocations: 11.97 MB / 0.6009 GB, free: 11.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01276/0.6255, allocations: 8.996 MB / 0.6097 GB, free: 2.363 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/0.6316, allocations: 3.082 MB / 0.6127 GB, free: 15.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003698/0.6319, allocations: 57.7 kB / 0.6128 GB, free: 15.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/0.6343, allocations: 2.524 MB / 0.6152 GB, free: 12.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.6356, allocations: 0.909 MB / 0.6161 GB, free: 11.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/0.6376, allocations: 1.009 MB / 0.6171 GB, free: 10.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.6377, allocations: 301.1 kB / 0.6174 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003574/0.6413, allocations: 1.696 MB / 0.619 GB, free: 8.777 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00582/0.6471, allocations: 4.313 MB / 0.6233 GB, free: 3.223 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009563/0.6567, allocations: 6.499 MB / 0.6296 GB, free: 11.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.691e-05/0.6568, allocations: 24 kB / 0.6296 GB, free: 11.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01397/0.6707, allocations: 6.631 MB / 0.6361 GB, free: 5.289 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.231e-05/0.6708, allocations: 44 kB / 0.6361 GB, free: 5.246 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/0.671, allocations: 88 kB / 0.6362 GB, free: 5.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.673, allocations: 0.7398 MB / 0.6369 GB, free: 4.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/0.6767, allocations: 1.065 MB / 0.638 GB, free: 3.344 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01734/0.694, allocations: 13.1 MB / 0.6508 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/0.6985, allocations: 291.8 kB / 0.6511 GB, free: 5.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000955/0.6994, allocations: 295 kB / 0.6513 GB, free: 5.117 MB / 494.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 (590): * Single equations (assignments): 579 * Array equations: 6 * 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%), (1,1,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003848/0.7033, allocations: 1.798 MB / 0.6531 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006664/0.7039, allocations: 302 kB / 0.6534 GB, free: 3.016 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007383/0.7113, allocations: 3.408 MB / 0.6567 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005897/0.7172, allocations: 2.942 MB / 0.6596 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/0.7172, allocations: 8 kB / 0.6596 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/0.7173, allocations: 7.969 kB / 0.6596 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02271/0.74, allocations: 10.3 MB / 0.6697 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.74, allocations: 4 kB / 0.6697 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.7411, allocations: 267.6 kB / 0.6699 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/0.7433, allocations: 0.7831 MB / 0.6707 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/0.7434, allocations: 47.98 kB / 0.6707 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01651/0.76, allocations: 12.97 MB / 0.6834 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007936/0.7679, allocations: 5.781 MB / 0.689 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009293/0.7772, allocations: 5.014 MB / 0.6939 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.7785, allocations: 301.9 kB / 0.6942 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004459/0.779, allocations: 40 kB / 0.6943 GB, free: 8.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.7802, allocations: 116 kB / 0.6944 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/0.7806, allocations: 169.5 kB / 0.6945 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.7808, allocations: 66.39 kB / 0.6946 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003734/0.7845, allocations: 1.969 MB / 0.6965 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.7845, allocations: 192 / 0.6965 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005119/0.7896, allocations: 0.9765 MB / 0.6975 GB, free: 4.801 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (159): * Single equations (assignments): 150 * 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%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00923/0.7989, allocations: 5.681 MB / 0.703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00927/0.8081, allocations: 4.706 MB / 0.7076 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.8081, allocations: 0.5625 kB / 0.7076 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/0.8119, allocations: 2.085 MB / 0.7096 GB, free: 8.145 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.8147, allocations: 477.5 kB / 0.7101 GB, free: 7.688 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.279/1.094, allocations: 36.25 MB / 0.7455 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003031/1.097, allocations: 2.956 MB / 0.7484 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003318/1.1, allocations: 1.386 MB / 0.7497 GB, free: 165.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001936/1.102, allocations: 1.631 MB / 0.7513 GB, free: 164.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.552e-06/1.102, allocations: 3.906 kB / 0.7513 GB, free: 164.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1192/1.221, allocations: 69.86 MB / 0.8196 GB, free: 101.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.23/23.45, allocations: 7.078 kB / 0.8196 GB, free: 101.5 MB / 0.545 GB " [Timeout remaining time 636] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.426041096001427] Failed to read output from testmodel.py, exit status != 0: 23.614774497997132 23.632215785 23.206567093 Calling exit ...